0 Replies Latest reply on Mar 11, 2010 9:06 AM by rajasundaram

    help portal authentication

    rajasundaram

      Hi,

       

      Issue:

      When user first logged in it goes through the authentication login module which I configured. But user closed the browser after they login and opens the new browser it is not using the login module which I configured or I don't know yet it uses other module. Need help is there any configuration I missed from my listing. I appriciate your help.

       

       

       

      Configuration:

       

      I created application named as 'SamplePortal'

       

       

      1. login-config.xml

       

          <application-policy name = "sample">
             <authentication>
                <login-module code="com.sample.base.auth.SamplePortalLoginModule" flag="required">
                </login-module>
             </authentication>
          </application-policy>

       

       

      2. web.xml

       

      <security-constraint>

       

      <web-resource-collection>

       

      <web-resource-name>SamplePortal</web-resource-name>

       

      <url-pattern>/*</url-pattern>

       

      </web-resource-collection>

       

      <auth-constraint>

       

      <role-name>sample</role-name>

       

      </auth-constraint>

       

      </security-constraint>

       

       

      <security-role>

       

      <role-name>sample</role-name>

       

      </security-role>

       

      <login-config>

       

      <auth-method>FORM</auth-method>

       

      <form-login-config>

       

      <form-login-page>/jsp/login.jsp</form-login-page>

       

      <form-error-page>/jsp/elogin.jsp</form-error-page>

       

      </form-login-config>

       

      </login-config>

       

      3. jboss-web.xml

       

      <

       

      jboss-web>

       

      <class-loading java2ClassLoadingCompliance="false">

       

      <loader-repository>test:loader=portlet</loader-repository>

       

      </class-loading>

       

      <security-domain>java:/jaas/sample</security-domain>

       

      <context-root>/SamplePortal</context-root>

       

       

      jboss-web>

      </