]> git.argeo.org Git - lgpl/argeo-commons.git/blob - security/modules/org.argeo.security.dao.ldap/META-INF/spring/security-ldap-services.xml
[maven-release-plugin] prepare for next development iteration
[lgpl/argeo-commons.git] / security / modules / org.argeo.security.dao.ldap / META-INF / spring / security-ldap-services.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <beans xmlns="http://www.springframework.org/schema/beans"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xsi:schemaLocation="
5 http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
6
7 <bean id="systemExecutionService" class="org.argeo.security.core.KeyBasedSystemExecutionService">
8 <property name="authenticationManager" ref="authenticationManager" />
9 <property name="systemAuthenticationKey" value="${argeo.security.systemKey}" />
10 </bean>
11
12 <bean id="authenticationManager" class="org.springframework.security.providers.ProviderManager">
13 <property name="providers">
14 <list>
15 <ref bean="authByAdapterProvider" />
16 <!-- <ref bean="preAuthAuthenticationProvider" /> -->
17 <ref bean="anonymousAuthenticationProvider" />
18 <ref bean="rememberMeAuthenticationProvider" />
19 <ref bean="ldapAuthenticationProvider" />
20 </list>
21 </property>
22 </bean>
23
24 <!-- Authentication provider -->
25 <bean id="authByAdapterProvider"
26 class="org.springframework.security.adapters.AuthByAdapterProvider">
27 <description><![CDATA[System authentication]]></description>
28 <property name="key" value="${argeo.security.systemKey}" />
29 </bean>
30
31 <!-- <bean id="preAuthAuthenticationProvider" -->
32 <!-- class="org.springframework.security.providers.preauth.PreAuthenticatedAuthenticationProvider"> -->
33 <!-- <description><![CDATA[Pre-authentication]]></description> -->
34 <!-- </bean> -->
35
36 <bean id="anonymousAuthenticationProvider"
37 class="org.springframework.security.providers.anonymous.AnonymousAuthenticationProvider">
38 <description><![CDATA[Anonymous authentication]]></description>
39 <property name="key" value="${argeo.security.systemKey}" />
40 </bean>
41
42 <bean id="rememberMeAuthenticationProvider"
43 class="org.springframework.security.providers.rememberme.RememberMeAuthenticationProvider">
44 <description><![CDATA[Remember me authentication]]></description>
45 <property name="key" value="${argeo.security.systemKey}" />
46 </bean>
47
48 <!-- Internal authentication, used by during the general authentication
49 initialization himself, in order to prevent the following dependency cycle:
50 Repository.login() <= AuthenticationManager <= LdapAuthenticationProvider
51 <= Repository.login() in init() -->
52 <bean id="internalAuthenticationManager" class="org.springframework.security.providers.ProviderManager">
53 <property name="providers">
54 <list>
55 <ref bean="authByAdapterProvider" />
56 </list>
57 </property>
58 </bean>
59
60 <bean
61 class="org.argeo.security.core.AuthenticatedApplicationContextInitialization">
62 <description><![CDATA[Executes initialization with a system authentication]]></description>
63 <property name="authenticationManager" ref="internalAuthenticationManager" />
64 </bean>
65 </beans>