2 Replies Latest reply on Jan 21, 2009 10:54 AM by newlukai

    identity rememberme

    csaban

      I am trying to get identity rememberme to work for login.
      I am using 2.1.0.A1 on Tomcat 6.0.14 on jdk1.6.


      The cookie is set properly in the browser, but when revisiting the page the username is not set on the identity.


      I debugged FacesSecurityEvents.initCredentialsFromCookie and FacesContext.getCurrentInstance() returns null - so the request and the cookies cannot be accessed by that code.


      Is there any setting needed in components.xml other then <security:identity remember-me="true" />?


      Login on its own works, only remember me that does not.


      Is it possible to access FacesContext.getCurrentInstance() in an observer code?

        • 1. Re: identity rememberme

          I have the same problem. Debugging showed me that the FacesContext can't be resolved. Have you found a solution on this?

          • 2. Re: identity rememberme

            This is the workaround I use ATM:


            <action execute="#{org.jboss.seam.security.facesSecurityEvents.initCredentialsFromCookie(org.jboss.seam.security.identity)}"/>



            I included this as a page action for my login page. But I hope that the Seam guys fix this bug.