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=
"anonymousAuthenticationProvider" />
16 <ref bean=
"authByAdapterProvider" />
17 <ref bean=
"ldapAuthenticationProvider" />
22 <!-- Authentication provider -->
23 <bean id=
"authByAdapterProvider"
24 class=
"org.springframework.security.adapters.AuthByAdapterProvider">
25 <description><![CDATA[System authentication]]
></description>
26 <property name=
"key" value=
"${argeo.security.systemKey}" />
29 <bean id=
"anonymousAuthenticationProvider"
30 class=
"org.springframework.security.providers.anonymous.AnonymousAuthenticationProvider">
31 <description><![CDATA[Anonymous authentication]]
></description>
32 <property name=
"key" value=
"${argeo.security.systemKey}" />
35 <!-- Internal authentication, used by during the general authentication
36 initialization himself, in order to prevent the following dependency cycle:
37 Repository.login() <= AuthenticationManager <= LdapAuthenticationProvider
38 <= Repository.login() in init() -->
39 <bean id=
"internalAuthenticationManager" class=
"org.springframework.security.providers.ProviderManager">
40 <property name=
"providers">
42 <ref bean=
"authByAdapterProvider" />
48 class=
"org.argeo.security.core.AuthenticatedApplicationContextInitialization">
49 <description><![CDATA[Executes initialization with a system authentication]]
></description>
50 <property name=
"authenticationManager" ref=
"internalAuthenticationManager" />