22 lines
1.1 KiB
XML
Raw Normal View History

2013-02-17 21:00:08 -03:00
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:sec="http://www.springframework.org/schema/security"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
2020-11-07 11:56:38 -08:00
http://www.springframework.org/schema/beans/spring-beans.xsd
2013-02-17 21:00:08 -03:00
http://www.springframework.org/schema/security
2020-11-07 11:56:38 -08:00
http://www.springframework.org/schema/security/spring-security.xsd">
2013-02-17 21:00:08 -03:00
2020-11-08 12:08:13 -08:00
<bean id="passwordEncoder" class="com.wisemapping.security.DefaultPasswordEncoderFactories" factory-method="createDelegatingPasswordEncoder"/>
2013-02-17 21:00:08 -03:00
<sec:authentication-manager alias="authenticationManager">
<sec:authentication-provider ref="dbAuthenticationProvider"/>
<sec:authentication-provider user-service-ref="userDetailsService"/>
</sec:authentication-manager>
<bean id="dbAuthenticationProvider" class="com.wisemapping.security.AuthenticationProvider">
<property name="userDetailsService" ref="userDetailsService"/>
2020-11-08 12:08:13 -08:00
<property name="encoder" ref="passwordEncoder"/>
2013-02-17 21:00:08 -03:00
</bean>
</beans>