Re: Wicket-Security: What is the easiest way to switch user's principal behind the scenes?

2008-06-24 Thread Maurice Marrink
By default a logincontext only allows a single login, this can be changed by a constructor flag. To switch principals simply login a second time with the new context and logoff with the old context. the session will be preserved. Maurice On Tue, Jun 24, 2008 at 2:14 PM, Sergey Podatelev [EMAIL

Re: Wicket-Security: What is the easiest way to switch user's principal behind the scenes?

2008-06-24 Thread Sergey Podatelev
Thanks Maurice, this is exactly what I've done so far. But for some reason, session is reset. I'm using Acegi, and my LoginContext looks very similar to the one provided in the example of Swarm/Acegi integration. Since Authentication object containing user credentials, kept in Acegi's

Re: Wicket-Security: What is the easiest way to switch user's principal behind the scenes?

2008-06-24 Thread Sergey Podatelev
Thanks a lot, I'll give it a try. On Tue, Jun 24, 2008 at 5:54 PM, Maurice Marrink [EMAIL PROTECTED] wrote: First login with the second context, then log off with the first context. swarm will invalidate the session after the last subject has logged off. which is what is happening in your