Introduce RAP anonymous
[lgpl/argeo-commons.git] / security / plugins / org.argeo.security.equinox / META-INF / spring / loginModules.xml
index fe7bb602d39999fd9dd726d572e9fe18d5cbdbb9..ed0a7886085862471ae9f89d75e9c4368ab5bdfa 100644 (file)
@@ -4,6 +4,14 @@
        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="authenticationManager" ref="authenticationManager" />
        </bean>
 
+       <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" />