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"
5 http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
7 <bean id=
"authenticationManager"
8 class=
"org.springframework.security.authentication.ProviderManager">
9 <property name=
"providers">
11 <!-- <ref bean="authByAdapterProvider" /> -->
12 <!-- <ref bean="preAuthProvider" /> -->
13 <ref bean=
"anonymousAuthenticationProvider" />
14 <ref bean=
"rememberMeAuthenticationProvider" />
15 <ref bean=
"ldapAuthenticationProvider" />
20 <!-- Authentication provider -->
21 <bean id=
"authByAdapterProvider" class=
"org.argeo.security.core.InternalAuthenticationProvider">
22 <description><![CDATA[System authentication]]
></description>
23 <property name=
"key" value=
"${argeo.security.systemKey}" />
26 <!-- <bean id="preAuthProvider" -->
27 <!-- class="org.springframework.security.providers.preauth.PreAuthenticatedAuthenticationProvider"> -->
28 <!-- <description><![CDATA[Pre-authentication]]></description> -->
29 <!-- <property name="preAuthenticatedUserDetailsService"> -->
30 <!-- <bean id="userDetailsServiceWrapper" -->
31 <!-- class="org.springframework.security.userdetails.UserDetailsByNameServiceWrapper"> -->
32 <!-- <property name="userDetailsService" ref="userDetailsManager" /> -->
37 <bean id=
"anonymousAuthenticationProvider"
38 class=
"org.springframework.security.authentication.AnonymousAuthenticationProvider">
39 <description><![CDATA[Anonymous authentication]]
></description>
40 <property name=
"key" value=
"${argeo.security.systemKey}" />
43 <!-- <bean id="rememberMeAuthenticationProvider" -->
44 <!-- class="org.springframework.security.providers.rememberme.RememberMeAuthenticationProvider"> -->
45 <!-- <description><![CDATA[Remember me authentication]]></description> -->
46 <!-- <property name="key" value="${argeo.security.systemKey}" /> -->
49 <!-- Internal authentication, used by during the general authentication
50 initialization himself, in order to prevent the following dependency cycle:
51 Repository.login() <= AuthenticationManager <= LdapAuthenticationProvider
52 <= Repository.login() in init() -->
53 <bean id=
"internalAuthenticationManager"
54 class=
"org.springframework.security.authentication.ProviderManager">
55 <property name=
"providers">
57 <ref bean=
"authByAdapterProvider" />
63 class=
"org.argeo.security.core.AuthenticatedApplicationContextInitialization">
64 <description><![CDATA[Executes initialization with a system authentication]]
></description>
65 <property name=
"authenticationManager" ref=
"internalAuthenticationManager" />