<?xml version="1.0"?>

<component name="org.nuxeo.ecm.platform.login.LoginConfig" version="1.0">
  <documentation>
  Login modules used on Tomcat
  @author Bogdan Stefanescu (bs@nuxeo.com)
  </documentation>


  <extension target="org.nuxeo.runtime.LoginComponent" point="domains">

	  <domain name="nuxeo-system-login">
	    <login-module code="org.nuxeo.runtime.api.login.SystemLoginModule" flag="required"/>
      <login-module code="org.nuxeo.ecm.core.api.local.ClientLoginModule" flag="required">
        <option name="password-stacking">true</option>
			  <option name="multi-threaded">true</option>
  	  </login-module>
	  </domain>

    <domain name="nuxeo-client-login">
      <login-module code="org.nuxeo.ecm.platform.login.NuxeoLoginModule"
          flag="required">
        <option name="principalClassName">org.nuxeo.ecm.platform.login.NuxeoPrincipal</option>
        <option name="useUserIdentificationInfoCB">true</option>
      </login-module>
      <login-module code="org.nuxeo.ecm.core.api.local.ClientLoginModule" flag="required">
        <option name="password-stacking">true</option>
        <option name="restore-login-identity">true</option>
        <option name="multi-threaded">true</option>
      </login-module>
	  </domain>


  	<domain name="nuxeo-webengine">
	    <login-module code = "org.nuxeo.ecm.platform.login.NuxeoLoginModule"
             flag = "required">
              <option name="principalClassName">org.nuxeo.ecm.platform.login.NuxeoPrincipal</option>
              <option name="useUserIdentificationInfoCB">true</option>
      </login-module>
      <!--login-module code="org.nuxeo.ecm.core.api.local.ClientLoginModule" flag="required">
        <option name="password-stacking">true</option>
        <option name="multi-threaded">true</option>
      </login-module-->
    </domain>

  </extension>


</component>

