[jboss-user] [JBoss Seam] - login when already logged in with Seam 2

mustaghattack do-not-reply at jboss.com
Tue Sep 25 10:35:16 EDT 2007


I just moved to Seam 2 and I found this little change in the Identity class.
Prior to 2.0 we had :

  |    public void authenticate() 
  |       throws LoginException
  |    {
  |       authenticate( getLoginContext() );
  |    }
  | 

Now we have :

  |    public void authenticate() 
  |       throws LoginException
  |    {
  |       // If we're already authenticated, then don't authenticate again
  |       if (!isLoggedIn())
  |       {
  |          authenticate( getLoginContext() );
  |       }
  |    }
  | 

If an already logged in user (say bob) try to login again (as admin) it's successful (the authenticator is no called) and you get the "Welcome, admin" message.

To me the old code was better and breaks login compatibility ...

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4088437#4088437

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4088437



More information about the jboss-user mailing list