- <bean id="authenticationProvidersRegister" class="org.argeo.security.core.AuthenticationProvidersRegister">
- <property name="defaultProviders">
+ <!-- Authentication providers -->
+ <bean id="osJcrAuthenticationProvider" class="org.argeo.security.jcr.OsJcrAuthenticationProvider"
+ init-method="init" destroy-method="destroy" depends-on="argeoDataModel">
+ <property name="repository" ref="nodeRepository" />
+ </bean>
+
+ <bean id="authByAdapterProvider"
+ class="org.springframework.security.adapters.AuthByAdapterProvider">
+ <description><![CDATA[System authentication]]></description>
+ <property name="key" value="${argeo.security.systemKey}" />
+ </bean>
+
+ <!-- Internal authentication, used by the general authentication process
+ himself, in order to prevent the following dependency cycle: Repository.login()
+ <= AuthenticationManager <= osJcrAuthenticationProvider <= Repository.login()
+ in init() -->
+ <bean id="internalAuthenticationManager" class="org.springframework.security.providers.ProviderManager">
+ <property name="providers">