]> git.argeo.org Git - lgpl/argeo-commons.git/blob - security/modules/org.argeo.security.services/META-INF/spring/services.xml
Improve LDAP security DAO
[lgpl/argeo-commons.git] / security / modules / org.argeo.security.services / META-INF / spring / 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
8 class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
9 <property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_OVERRIDE" />
10 <property name="locations">
11 <value>osgibundle:security.properties</value>
12 </property>
13 </bean>
14
15 <bean id="securityService" class="org.argeo.security.core.DefaultCurrentUserService">
16 <property name="currentUserDao" ref="currentUserDao" />
17 </bean>
18
19 <bean id="systemExecutionService" class="org.argeo.security.core.KeyBasedSystemExecutionService">
20 <property name="authenticationManager" ref="authenticationManager" />
21 <property name="systemAuthenticationKey" value="${argeo.security.systemKey}" />
22 </bean>
23
24 <bean id="authenticationManager" class="org.argeo.security.core.ArgeoAuthenticationManager">
25 <property name="providers">
26 <list>
27 <bean class="org.springframework.security.adapters.AuthByAdapterProvider">
28 <property name="key" value="${argeo.security.systemKey}" />
29 </bean>
30 <bean
31 class="org.springframework.security.providers.anonymous.AnonymousAuthenticationProvider">
32 <property name="key" value="${argeo.security.systemKey}" />
33 </bean>
34 </list>
35 </property>
36 </bean>
37 </beans>