+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="
+ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
+
+ <bean
+ class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
+ <property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_OVERRIDE" />
+ <property name="locations">
+ <value>osgibundle:security.properties
+ </value>
+ </property>
+ </bean>
+
+ <bean id="securityService" class="org.argeo.security.core.DefaultSecurityService">
+ <property name="securityDao" ref="securityDao" />
+ <property name="passwordEncoder" ref="passwordEncoder" />
+ <property name="authenticationManager" ref="authenticationManager" />
+ <property name="systemAuthenticationKey" value="${argeo.security.systemKey}" />
+ </bean>
+
+ <bean id="systemExecutionService" class="org.argeo.security.core.KeyBasedSystemExecutionService">
+ <property name="authenticationManager" ref="authenticationManager" />
+ <property name="systemAuthenticationKey" value="${argeo.security.systemKey}" />
+ </bean>
+
+ <bean id="authenticationManager" class="org.argeo.security.core.ArgeoAuthenticationManager">
+ <property name="providers">
+ <list>
+ <bean class="org.springframework.security.adapters.AuthByAdapterProvider">
+ <property name="key" value="${argeo.security.systemKey}" />
+ </bean>
+ <bean
+ class="org.springframework.security.providers.anonymous.AnonymousAuthenticationProvider">
+ <property name="key" value="${argeo.security.systemKey}" />
+ </bean>
+ </list>
+ </property>
+ </bean>
+
+
+ <!-- <bean id="rememberMeAuthenticationProvider" -->
+ <!-- class="org.springframework.security.providers.rememberme.RememberMeAuthenticationProvider"> -->
+ <!-- <property name="key" value="${argeo.security.systemKey}" /> -->
+ <!-- </bean> -->
+
+</beans>
\ No newline at end of file