Add remember me capabilities to RAP
[lgpl/argeo-commons.git] / security / modules / org.argeo.security.dao.ldap / META-INF / spring / security-ldap-services.xml
index e0851123dfa0dc465b04a93e27b1ce246797d164..525b84db0fa504b25c24fda6e2008b493a190ce5 100644 (file)
        <bean id="authenticationManager" class="org.springframework.security.providers.ProviderManager">
                <property name="providers">
                        <list>
-                               <ref bean="anonymousAuthenticationProvider" />
                                <ref bean="authByAdapterProvider" />
+<!--                           <ref bean="preAuthAuthenticationProvider" /> -->
+                               <ref bean="anonymousAuthenticationProvider" />
+                               <ref bean="rememberMeAuthenticationProvider" />
                                <ref bean="ldapAuthenticationProvider" />
                        </list>
                </property>
                <property name="key" value="${argeo.security.systemKey}" />
        </bean>
 
+<!--   <bean id="preAuthAuthenticationProvider" -->
+<!--           class="org.springframework.security.providers.preauth.PreAuthenticatedAuthenticationProvider"> -->
+<!--           <description><![CDATA[Pre-authentication]]></description> -->
+<!--   </bean> -->
+
        <bean id="anonymousAuthenticationProvider"
                class="org.springframework.security.providers.anonymous.AnonymousAuthenticationProvider">
                <description><![CDATA[Anonymous authentication]]></description>
                <property name="key" value="${argeo.security.systemKey}" />
        </bean>
 
+       <bean id="rememberMeAuthenticationProvider"
+               class="org.springframework.security.providers.rememberme.RememberMeAuthenticationProvider">
+               <description><![CDATA[Remember me authentication]]></description>
+               <property name="key" value="${argeo.security.systemKey}" />
+       </bean>
+
        <!-- Internal authentication, used by during the general authentication 
                initialization himself, in order to prevent the following dependency cycle: 
                Repository.login() <= AuthenticationManager <= LdapAuthenticationProvider