Improve Security
[lgpl/argeo-commons.git] / security / modules / org.argeo.security.services / META-INF / spring / services.xml
index dbf6489264c8e6002e1d896a904146528060d834..97fe92eda942ce6d0212323677f0bab8d20200eb 100644 (file)
@@ -4,7 +4,18 @@
        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="authenticationManager" ref="authenticationManager" />
+               <property name="systemAuthenticationKey" value="${argeo.security.systemKey}" />
        </bean>
 </beans>
\ No newline at end of file