resin-acegisecurity.xml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. * This file will be copied into WAR's classes directory if using container adapter
  14. *
  15. -->
  16. <beans>
  17. <!-- ================= CONTAINER ADAPTER CONFIGURATION ================ -->
  18. <!-- Data access object which stores authentication information -->
  19. <bean id="inMemoryDaoImpl" class="net.sf.acegisecurity.providers.dao.memory.InMemoryDaoImpl">
  20. <property name="userMap">
  21. <value>
  22. marissa=koala,ROLE_TELLER,ROLE_SUPERVISOR
  23. dianne=emu,ROLE_TELLER
  24. scott=wombat,ROLE_TELLER
  25. peter=opal,disabled,ROLE_TELLER
  26. </value>
  27. </property>
  28. </bean>
  29. <!-- Authentication provider that queries our data access object -->
  30. <bean id="daoAuthenticationProvider" class="net.sf.acegisecurity.providers.dao.DaoAuthenticationProvider">
  31. <property name="authenticationDao"><ref bean="inMemoryDaoImpl"/></property>
  32. <property name="ignorePasswordCase"><value>false</value></property>
  33. <property name="ignoreUsernameCase"><value>true</value></property>
  34. </bean>
  35. <!-- The authentication manager that iterates through our only authentication provider -->
  36. <bean id="authenticationManager" class="net.sf.acegisecurity.providers.ProviderManager">
  37. <property name="providers">
  38. <list>
  39. <ref bean="daoAuthenticationProvider"/>
  40. </list>
  41. </property>
  42. </bean>
  43. </beans>