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=
"systemExecutionService" class=
"org.argeo.security.core.KeyBasedSystemExecutionService">
8 <property name=
"authenticationManager" ref=
"authenticationManager" />
9 <property name=
"systemAuthenticationKey" value=
"${argeo.security.systemKey}" />
12 <bean id=
"authenticationManager" class=
"org.springframework.security.providers.ProviderManager">
13 <property name=
"providers">
15 <ref bean=
"authByAdapterProvider" />
16 <!-- <ref bean="preAuthAuthenticationProvider" /> -->
17 <ref bean=
"anonymousAuthenticationProvider" />
18 <ref bean=
"rememberMeAuthenticationProvider" />
19 <ref bean=
"ldapAuthenticationProvider" />
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}" />
31 <!-- <bean id="preAuthAuthenticationProvider" -->
32 <!-- class="org.springframework.security.providers.preauth.PreAuthenticatedAuthenticationProvider"> -->
33 <!-- <description><![CDATA[Pre-authentication]]></description> -->
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}" />
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}" />
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">
55 <ref bean=
"authByAdapterProvider" />
61 class=
"org.argeo.security.core.AuthenticatedApplicationContextInitialization">
62 <description><![CDATA[Executes initialization with a system authentication]]
></description>
63 <property name=
"authenticationManager" ref=
"internalAuthenticationManager" />