2 Replies Latest reply on Dec 19, 2007 6:55 AM by quilian

    Identity, rememberMe and autologin

    monkeyden

      Despite Christian's opinion of auto-login this is precisely what my requirements are. I've been looking for a way to load the user record when identity.getIsRememberMe() returns true. I put this code in my components.xml file in hopes that the autologin method would be called Seam Security discovered that isRememberMe was true.

      <event type="org.jboss.seam.rememberMe">
       <action expression="#{loginAction.autologin}"/>
      </event>


      And the method:
      public String autologin(){
       log.debug("Logging in by 'Remember Me'");
       return "";
      }


      Do I have to annotate the handle method with anything?

        • 1. Re: Identity, rememberMe and autologin
          monkeyden

           

          org.jboss.seam.rememberMe - occurs when Seam security detects the username in a cookie


          When does this typically happen? Can it be relied upon in any way? I would guess that on every request it is checked, but apparently not. I'd like to, on the first request, check for the cookie and if it exists, log the user in. Is anyone else using auto-login?

          • 2. Re: Identity, rememberMe and autologin

            Hey!

            did you find out how to use the autologin feature?

            would be nice to post it in this thread for other users (including me:-)

            many thanks,
            Tobias Kilian