add unit tests for PasswordEncoder implementations. remove ignore password case and ignore username case flags and handling from DaoAuthenticationProvider. remove requirement described in JavaDoc for AuthenticationDao that it ignore case when returning a user by username. Implementations may still do so if configured as such.
48 lines
1.6 KiB
XML
48 lines
1.6 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
|
|
<!--
|
|
* The Acegi Security System for Spring is published under the terms
|
|
* of the Apache Software License.
|
|
*
|
|
* This springsecurity.xml file will only be used by Resin. Normally the
|
|
* springsecurity.xml is container-wide, but in the case of Resin it is
|
|
* web application specific.
|
|
*
|
|
* $Id$
|
|
*
|
|
* This file will be copied into WAR's classes directory if using container adapter
|
|
*
|
|
-->
|
|
|
|
<beans>
|
|
|
|
<!-- ================= CONTAINER ADAPTER CONFIGURATION ================ -->
|
|
|
|
<!-- Data access object which stores authentication information -->
|
|
<bean id="inMemoryDaoImpl" class="net.sf.acegisecurity.providers.dao.memory.InMemoryDaoImpl">
|
|
<property name="userMap">
|
|
<value>
|
|
marissa=koala,ROLE_TELLER,ROLE_SUPERVISOR
|
|
dianne=emu,ROLE_TELLER
|
|
scott=wombat,ROLE_TELLER
|
|
peter=opal,disabled,ROLE_TELLER
|
|
</value>
|
|
</property>
|
|
</bean>
|
|
|
|
<!-- Authentication provider that queries our data access object -->
|
|
<bean id="daoAuthenticationProvider" class="net.sf.acegisecurity.providers.dao.DaoAuthenticationProvider">
|
|
<property name="authenticationDao"><ref bean="inMemoryDaoImpl"/></property>
|
|
</bean>
|
|
|
|
<!-- The authentication manager that iterates through our only authentication provider -->
|
|
<bean id="authenticationManager" class="net.sf.acegisecurity.providers.ProviderManager">
|
|
<property name="providers">
|
|
<list>
|
|
<ref bean="daoAuthenticationProvider"/>
|
|
</list>
|
|
</property>
|
|
</bean>
|
|
|
|
</beans>
|