]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - security/plugins/org.argeo.security.equinox/META-INF/spring/loginModules.xml
Improve secure logging
[lgpl/argeo-commons.git] / security / plugins / org.argeo.security.equinox / META-INF / spring / loginModules.xml
index f409ecd995fd6d1741867a02cd954c0574bfd928..ed0a7886085862471ae9f89d75e9c4368ab5bdfa 100644 (file)
@@ -4,17 +4,35 @@
        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" />
        </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.crypto.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>