1 Reply Latest reply on Jan 26, 2014 9:59 PM by Tuyen Nguyen The

    JAAS in GateIn 3.6

    Anish Antony Newbie

      Hi,

       

      We have recently upgraded GateIn from 3.2 to 3.6.We have authenticated a CustomLoginModule in GateIn 3.2 by extending PortalLoginModule class.

      What we did for GateIn 3.2 is as follows :

      1. In gatein-jboss-beans.xml file (server\default\deploy\gatein.ear\META-INF), i added an additional <login-module> tag as follows


      <login-module code="com.myportal.loginmodule.LicensingLoginModule" flag="required">

      <module-option name="portalContainerName">portal</module-option>

      <module-option name="realmName">gatein-domain</module-option>

      </login-module>

       

      2. Then ,created the LicensingLoginModule which implements the PortletLogin module class, and override the login method to suite the custom implementation. Build the file into  a jar and placed the same in the directory. “server\default\deploy\gatein.ear\lib”

       

      But now i am using GateIn 3.6 woth JbossAS7.How can i implement the above scenario in GateIn 3.6?

      Found that there is no file named gatein-jboss-beans.xml in GateIn 3.6.


      Please help..

      Thanks In advance...

        • 1. Re: JAAS in GateIn 3.6
          Tuyen Nguyen The Newbie

          In gatein 3.6, you can add a CustomLoginModule in $GATEIN_HOME/standalone/configuration/standalone.xml,

          For example:


          <security-domain name="gatein-domain" cache-type="default">

               [....]

              <authentication>

                  <login-module code="org.exoplatform.services.security.j2ee.JBossAS7LoginModule" flag="required">

                      <module-option name="portalContainerName" value="portal"/>

                      <module-option name="realmName" value="gatein-domain"/>

                  </login-module>

              </authentication>

          </security-domain>