Standalone user management based on Jackrabbit working
[lgpl/argeo-commons.git] / org.argeo.security.dao.jackrabbit / META-INF / spring / security-jcr-services.xml
index 32baed4735e4c33989cb692f500361bfe5e06efc..7f276a27131ca83ba0e2fb7f426e8a3502167cae 100644 (file)
@@ -16,6 +16,7 @@
                <property name="providers">
                        <list>
                                <ref bean="authByAdapterProvider" />
+                               <ref bean="anonymousAuthenticationProvider" />
                                <ref bean="userDetailsManager" />
                        </list>
                </property>
                <property name="key" value="${argeo.security.systemKey}" />
        </bean>
 
-       <!-- Dummy user manager -->
+       <bean id="anonymousAuthenticationProvider"
+               class="org.springframework.security.providers.anonymous.AnonymousAuthenticationProvider">
+               <description><![CDATA[Anonymous authentication]]></description>
+               <property name="key" value="${argeo.security.systemKey}" />
+       </bean>
+
+       <!-- User manager -->
        <bean id="userDetailsManager"
                class="org.argeo.security.jackrabbit.JackrabbitUserAdminService"
                init-method="init" destroy-method="destroy" depends-on="systemInit">