12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- - Sample namespace-based configuration
- -
- -->
- <beans:beans xmlns="http://www.springframework.org/schema/security"
- xmlns:beans="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
- http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.1.xsd">
- <debug />
- <global-method-security pre-post-annotations="enabled" />
- <http pattern="/loggedout.jsp" security="none"/>
- <http use-expressions="true">
- <intercept-url pattern="/secure/extreme/**" access="hasRole('ROLE_SUPERVISOR')"/>
- <intercept-url pattern="/secure/**" access="isAuthenticated()" />
- <!--
- Allow all other requests. In a real application you should
- adopt a whitelisting approach where access is not allowed by default
- -->
- <intercept-url pattern="/**" access="permitAll" />
- <form-login />
- <logout logout-success-url="/loggedout.jsp" delete-cookies="JSESSIONID"/>
- <remember-me />
- <!--
- Uncomment to enable X509 client authentication support
- <x509 />
- -->
- <!-- Uncomment to limit the number of sessions a user can have -->
- <session-management invalid-session-url="/timeout.jsp">
- <concurrency-control max-sessions="1" error-if-maximum-exceeded="true" />
- </session-management>
- </http>
- <!--
- Usernames/Passwords are
- rod/koala
- dianne/emu
- scott/wombat
- peter/opal
- -->
- <authentication-manager>
- <authentication-provider>
- <password-encoder hash="md5"/>
- <user-service>
- <user name="rod" password="a564de63c2d0da68cf47586ee05984d7" authorities="ROLE_SUPERVISOR, ROLE_USER, ROLE_TELLER" />
- <user name="dianne" password="65d15fe9156f9c4bbffd98085992a44e" authorities="ROLE_USER,ROLE_TELLER" />
- <user name="scott" password="2b58af6dddbd072ed27ffc86725d7d3a" authorities="ROLE_USER" />
- <user name="peter" password="22b5c9accc6e1ba628cedc63a72d57f8" authorities="ROLE_USER" />
- </user-service>
- </authentication-provider>
- </authentication-manager>
- </beans:beans>
|