]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - security/plugins/org.argeo.security.equinox/META-INF/spring/loginModules.xml
[maven-release-plugin] prepare release argeo-commons-2.1.11
[lgpl/argeo-commons.git] / security / plugins / org.argeo.security.equinox / META-INF / spring / loginModules.xml
index d661b5f562ef00fb8a2fca80fac0f02fd897adae..7a3e8025acb629812129d2c8f020f4646d7ab8d9 100644 (file)
@@ -4,17 +4,36 @@
        xsi:schemaLocation="http://www.springframework.org/schema/beans
         http://www.springframework.org/schema/beans/spring-beans.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="springLoginModule" class="org.argeo.security.equinox.SpringLoginModule"
                scope="prototype">
                <property name="authenticationManager" ref="authenticationManager" />
+               <property name="availableLocales" value="${argeo.i18n.availableLocales}"/>
        </bean>
 
-       <bean id="osSpringLoginModule" class="org.argeo.security.equinox.OsSpringLoginModule"
+       <bean id="springLoginModuleRemote" class="org.argeo.security.equinox.SpringLoginModule"
                scope="prototype">
+               <property name="remote" value="true" />
                <property name="authenticationManager" ref="authenticationManager" />
        </bean>
 
-       <bean id="keyringLoginModule" class="org.argeo.security.equinox.KeyringLoginModule"
+       <bean id="anonymousSpringLoginModule" class="org.argeo.security.equinox.SpringLoginModule"
                scope="prototype">
+               <property name="anonymous" value="true" />
+               <property name="anonymousRole" value="${argeo.security.anonymousRole}" />
+               <property name="key" value="${argeo.security.systemKey}" />
+               <property name="authenticationManager" ref="authenticationManager" />
+       </bean>
+
+       <bean id="osSpringLoginModule" class="org.argeo.security.equinox.OsSpringLoginModule"
+               scope="prototype">
+               <property name="authenticationManager" ref="authenticationManager" />
        </bean>
 </beans>