A very good attitude to have. Nothing worse than coming across a forum thread a year later with only a "doesn't matter, I got it working!" reply!
I was just about to report back anyway. I've changed my setup to use the userId as the Principal, instead of the User entity itself, and everything is now working as I would've expected it to! I also created a new tag to help out with accessing the User instance inline, which works in a very similar way to the bundled PrincipalTag; so all in all, there's been very little impact to this change, except it's now fixed the issues I was hitting. Thanks again, James. On Monday, 11 July 2011 at 23:07, Les Hazlewood-2 [via Shiro User] wrote: > Hi James, > > No worries - I've been known to be verbose in my replies ;) But I'd > rather be verbose in the hopes that it helps anyone reading messages > in the future than to be too short. > > In any event, welcome to the Apache Shiro community! > > Best regards, > > Les > > On Mon, Jul 11, 2011 at 12:51 PM, jagregory <[hidden email] > (/user/SendEmail.jtp?type=node&node=6572943&i=0)> wrote: > > > Somehow this doesn't feel like an adequate response to the amount of effort > > you've obviously put in to your replies... but thank you, that confirms my > > suspicions. I've been doing this long enough to realise if something hurts, > > to stop doing it :) > > > > My only disappointment is the reduced usefulness of the principal JSP tag, > > but I don't think it'll be difficult to roll my own wrapping the "get > > UserId > > from Principal and load User instance from the database". > > > > So I reckon I'll remove the User from my Principals collection and just use > > the UserId instead. > > > > Thanks for the help! > > > > James > > > > -- > > View this message in context: > > http://shiro-user.582556.n2.nabble.com/Updating-or-invalidating-Subject-Principals-tp6570762p6572395.html > > Sent from the Shiro User mailing list archive at Nabble.com > > (http://Nabble.com). > > > If you reply to this email, your message will be added to the discussion > below: > http://shiro-user.582556.n2.nabble.com/Updating-or-invalidating-Subject-Principals-tp6570762p6572943.html > > To unsubscribe from Updating or invalidating Subject Principals, click here > (http://shiro-user.582556.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=6570762&code=amFtZXNAamFncmVnb3J5LmNvbXw2NTcwNzYyfC0xNzc3ODMzOTAx). > > > -- View this message in context: http://shiro-user.582556.n2.nabble.com/Updating-or-invalidating-Subject-Principals-tp6570762p6572957.html Sent from the Shiro User mailing list archive at Nabble.com.
