1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
| <?xml version="1.0" encoding="UTF-8"?>
<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">
<http access-denied-page="/index.html">
<intercept-url pattern="/authentif.xhtml" filters="none"/>
<intercept-url pattern="/**"
access="ROLE_FORMATEUR" />
<form-login login-page="/authentif.xhtml" default-target-url="/Admin.xhtml" always-use-default-target="true" />
</http>
<!-- Popu up d'authentification <security:http-basic /> -->
<authentication-manager>
<authentication-provider>
<user-service>
<user name="douglas" password="objis" authorities="ROLE_ADMIN" />
<user name="morad" password="objis" authorities="ROLE_FORMATEUR" />
</user-service>
</authentication-provider>
</authentication-manager>
</beans:beans> |