resin-acegisecurity.xml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
  3. <!--
  4. * The Acegi Security System for Spring is published under the terms
  5. * of the Apache Software License.
  6. *
  7. * This springsecurity.xml file will only be used by Resin. Normally the
  8. * springsecurity.xml is container-wide, but in the case of Resin it is
  9. * web application specific.
  10. *
  11. * $Id$
  12. -->
  13. <beans>
  14. <!-- ================= CONTAINER ADAPTER CONFIGURATION ================ -->
  15. <!-- Data access object which stores authentication information -->
  16. <bean id="inMemoryDaoImpl" class="net.sf.acegisecurity.providers.dao.memory.InMemoryDaoImpl">
  17. <property name="userMap">
  18. <value>
  19. marissa=koala,ROLE_TELLER,ROLE_SUPERVISOR
  20. dianne=emu,ROLE_TELLER
  21. scott=wombat,ROLE_TELLER
  22. peter=opal,disabled,ROLE_TELLER
  23. </value>
  24. </property>
  25. </bean>
  26. <!-- Authentication provider that queries our data access object -->
  27. <bean id="daoAuthenticationProvider" class="net.sf.acegisecurity.providers.dao.DaoAuthenticationProvider">
  28. <property name="authenticationDao"><ref bean="inMemoryDaoImpl"/></property>
  29. <property name="ignorePasswordCase"><value>false</value></property>
  30. <property name="ignoreUsernameCase"><value>true</value></property>
  31. </bean>
  32. <!-- The authentication manager that iterates through our only authentication provider -->
  33. <bean id="authenticationManager" class="net.sf.acegisecurity.providers.ProviderManager">
  34. <property name="providers">
  35. <list>
  36. <ref bean="daoAuthenticationProvider"/>
  37. </list>
  38. </property>
  39. </bean>
  40. </beans>