[jboss-user] [JBoss Seam] - Re: Security: Login twice after logout

brombie do-not-reply at jboss.com
Fri Feb 1 05:18:47 EST 2008


I'm having the same problem here.  This problem is easy to duplicate if you have eclipse with JBoss tools.  Just create a new Seam Web Project which will give you the login and home page.

The logout link in the generated menu.xhtml is:

<s:link view="/home.xhtml" action="#{identity.logout}" value="Logout"  rendered="#{identity.loggedIn}" />

If you change the view to /login.xhtml like this:


<s:link view="login.xhtml action="#{identity.logout}" value="Logout"  rendered="#{identity.loggedIn}" />

then you'll have to login twice.  The first time you hit enter, it takes you back to the login screen.  You hit enter again and this time you're logged in.

I've tried commenting out the notLoggedIn and postAuthenticate events in components.xml but it didn't solve the problems.   It wouldn't be a good solution anyway, since I do need those events to be handled as configured.

Here's what I see on the console for the first login:

01:32:31,187 INFO  [Contexts] starting up: org.jboss.seam.security.identity
  | 01:32:31,187 INFO  [Contexts] starting up: org.jboss.seam.web.session

And on the second successful login:


  | 01:32:32,500 INFO  [Authenticator] authenticating: testuser

I'll appreciate it if someone can shine a light on what's going on here.

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

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



More information about the jboss-user mailing list