Why can't you just use the "guest" tag to perform your needed operations? Could you give an example of why you would need to give them a permission? To me, you're only trying to check if one user is this or that based on id, permission, role, etc.
Date: Wed, 11 Feb 2015 01:14:17 -0500 Subject: Re: Can anonymous user have permissions? From: [email protected] To: [email protected] Hey Tamas! Here is an idea for half a solution:https://github.com/bdemers/shiro/blob/anonymous-user-roles/samples/anonymous-user-roles/src/main/java/Quickstart.java#L130-L140 and the BIG warning for this example:https://github.com/bdemers/shiro/blob/anonymous-user-roles/samples/anonymous-user-roles/src/main/java/Quickstart.java#L158-L162 I'm guessing this doesn't really get you what you want though, I assume what you really want is to directly check permissions against a subject with a null principal without needing to jump through any other hoops ? -Brian On Tue, Feb 10, 2015 at 4:22 PM, Tamás Cservenák <[email protected]> wrote: Hi there, Les, or anyone: I have a question related to this very very old thread:http://shiro-user.582556.n2.nabble.com/Integration-of-Shiro-td4600440.html Especially about question No 5: "̆Can anonymous user have permissions?" (but am more inclined to rephrase it to "how can anonymous user have permissions"). In this very old thread, as answer, Les mentions that "There is another way that is a little more difficult that I can think of". Am interested in that "another way". Could somebody shed a bit of more light to it? Where to start digging? Any examples perhaps? Thanks in advance,~t~
