1 Reply Latest reply on Aug 7, 2011 10:05 PM by Aldo Bonzi

    Token-based Remember Me Authentication

    Zlatko Suslevski Newbie


      I followed the instructions described in the Section 15.3.5 of the Seam documentation and found out that I can implement my own token store by using the org.jboss.seam.security.TokenStore interface. This is exactly what I need, since I will store the tokens in XML file and not in the database, so I don't need JpaTokenStore.

      However, I implemented the TokenStore interface, but didn't know where to declare this class. How can I point out to Seam where is my implementation of the TokenStore?

      I already did the following things:

      <h:selectBooleanCheckbox id="rememberMe" value="#{rememberMe.enabled}"/>
      <security:remember-me mode="autoLogin"/>
      <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}"/>

      in components.xml.