2 Replies Latest reply on Feb 11, 2009 2:47 PM by agusmag.agusmag.dimi.uniud.it

    quite logon  - auto logn not working 2.1.1

    jheldens
      My clients use a smartcard to logon to my application. All this is handled by the browser and App Server through SSL and client authentication.

      This means that all my client are authenticated and that I only need to perform authorization. I thought I could use the auto login feature to accomplish this but this is not working.

      This is my set up:
      Component.xml:
      <security:identity authenticate-method="#{authenticator.readClientCertificateData}"  />
         <security:remember-me mode="autoLogin"/>

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

      pages.xml:

      <pages xmlns="http://jboss.com/products/seam/pages"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.1.xsd"

             no-conversation-view-id="/pages/home.xhtml"
             login-view-id="/login.xhtml">

          <page view-id="/pages/*" login-required="true">
              <navigation>
                  <rule if-outcome="home">
                      <redirect view-id="/pages/home.xhtml"/>
                  </rule>
              </navigation>
          </page>

      FYI the loginsuccessful event is fired, but i have the impressing that the not logedin event will always forwared the browser to the login page (which does not make sense in my setup).

      I also tried adding <security:remember-me mode="autoLogin"/> with no effect . It only raises a xml validation exception because it is not defined in the security xsd.

      I hope someone can help me or confirm that this not (yet) working.

      thanks