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">
9 class=
"org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
10 <property name=
"systemPropertiesModeName" value=
"SYSTEM_PROPERTIES_MODE_OVERRIDE" />
11 <property name=
"locations">
12 <value>osgibundle:auth.properties
</value>
17 <bean id=
"systemExecutionService" class=
"org.argeo.security.core.KeyBasedSystemExecutionService">
18 <property name=
"authenticationManager" ref=
"authenticationManager" />
19 <property name=
"systemAuthenticationKey" value=
"${argeo.security.systemKey}" />
22 <bean id=
"authenticationManager" class=
"org.springframework.security.providers.ProviderManager">
23 <property name=
"providers">
25 <ref bean=
"anonymousAuthenticationProvider" />
26 <ref bean=
"authByAdapterProvider" />
27 <ref bean=
"ldapAuthenticationProvider" />
32 <!-- Authentication provider -->
33 <bean id=
"authByAdapterProvider"
34 class=
"org.springframework.security.adapters.AuthByAdapterProvider">
35 <description><![CDATA[System authentication]]
></description>
36 <property name=
"key" value=
"${argeo.security.systemKey}" />
39 <bean id=
"anonymousAuthenticationProvider"
40 class=
"org.springframework.security.providers.anonymous.AnonymousAuthenticationProvider">
41 <description><![CDATA[Anonymous authentication]]
></description>
42 <property name=
"key" value=
"${argeo.security.systemKey}" />
45 <!-- Internal authentication, used by during the general authentication
46 initialization himself, in order to prevent the following dependency cycle:
47 Repository.login() <= AuthenticationManager <= LdapAuthenticationProvider
48 <= Repository.login() in init() -->
49 <bean id=
"internalAuthenticationManager" class=
"org.springframework.security.providers.ProviderManager">
50 <property name=
"providers">
52 <ref bean=
"authByAdapterProvider" />
58 class=
"org.argeo.security.core.AuthenticatedApplicationContextInitialization">
59 <description><![CDATA[Executes initialization with a system authentication]]
></description>
60 <property name=
"authenticationManager" ref=
"internalAuthenticationManager" />