<deployment xmlns="urn:jboss:bean-deployer:2.0">

  <application-policy xmlns="urn:jboss:security-beans:1.0" name="gatein-domain-ecmdemo">
    <authentication>
      <login-module code="org.exoplatform.web.security.PortalLoginModule" flag="required">
        <module-option name="portalContainerName">ecmdemo</module-option>
        <module-option name="realmName">gatein-domain-ecmdemo</module-option>
      </login-module>
      <login-module code="org.exoplatform.services.security.jaas.SharedStateLoginModule" flag="required">
        <module-option name="portalContainerName">ecmdemo</module-option>
        <module-option name="realmName">gatein-domain-ecmdemo</module-option>
      </login-module>
      <login-module code="org.exoplatform.services.security.j2ee.JbossLoginModule" flag="required">
        <module-option name="portalContainerName">ecmdemo</module-option>
        <module-option name="realmName">gatein-domain-ecmdemo</module-option>
      </login-module>
    </authentication>

    <!-- Uncomment this part (and comment the other part for CAS integration -->
    <!--
    <authentication>
      <login-module code="org.gatein.sso.agent.login.SSOLoginModule" flag="required">
      </login-module>      
      <login-module code="org.exoplatform.services.security.j2ee.JbossLoginModule" flag="required">
        <module-option name="portalContainerName">portal</module-option>
        <module-option name="realmName">gatein-domain</module-option>
      </login-module>
    </authentication>
    -->
  </application-policy>
  
</deployment> 
