Add basic security jars to the project
[proteocache.git] / WEB-INF / spring-security.xml
1 <beans:beans xmlns="http://www.springframework.org/schema/security"
2         xmlns:beans="http://www.springframework.org/schema/beans" 
3         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4         xsi:schemaLocation="http://www.springframework.org/schema/beans
5         http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
6         http://www.springframework.org/schema/security
7         http://www.springframework.org/schema/security/spring-security-3.1.xsd">
8
9         <http auto-config="true">
10                 <intercept-url pattern="/home/*" access="ROLE_USER" />
11                 <form-login login-page="/login" default-target-url="/welcome"
12                         authentication-failure-url="/loginfailed" />
13                 <logout logout-success-url="/logout" />
14         </http>
15
16         <authentication-manager>
17                 <authentication-provider>
18                         <user-service>
19                                 <user name="sherstnev" password="sasha12345" authorities="ROLE_USER" />
20                         </user-service>
21                 </authentication-provider>
22         </authentication-manager>
23
24 </beans:beans>