0 Replies Latest reply on May 2, 2009 9:28 AM by vk101

    remember-me autologin not raising events

      I've configured the remember-me autoLogin feature as per the documentation, but upon auto logging in, all that happens is Identity's loggedIn attribute is set to true and Identity's username is set - there's session initialization that I need to do once logged in, but I don't know where to do it with autoLogin.

      When I log in regularly using the login form, authenticate-method is called, then my observer for Identity.EVENTPOSTAUTHENTICATE is called, allowing me to initialize my session as needed. With the autoLogin feature, it skips the authenticate-method step (which makes sense), but it also skips Identity.EVENTPOSTAUTHENTICATE - so where can I assign roles to Identity, initialize my session, etc?

      This doesn't seem to be working - when I access a page where login-required is set to true, the org.jboss.seam.security.notLoggedIn event doesn't seem to be raised, because the breakpoint for redirect.captureCurrentView isn't hit - so the below setup doesn't allow me to do what's necessary.

      <event type="org.jboss.seam.security.notLoggedIn">
           <action execute="#{redirect.captureCurrentView}" />
           <action execute="#{identity.tryLogin}"/>
      <event type="org.jboss.seam.security.loginSuccessful">
           <action execute="#{redirect.returnToCapturedView}" />