Add authentication
[smart-bookstore.git] / WebServiceServer / src / main / resources / app-context-security.xml
blob9c07cc136977a9d9b30766699d347d770604ab63
1 <?xml version="1.0" encoding="UTF-8"?>
3 <beans:beans xmlns:beans="http://www.springframework.org/schema/beans"
4        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5        xmlns:aop="http://www.springframework.org/schema/aop"
6        xmlns:context="http://www.springframework.org/schema/context"
7        xmlns="http://www.springframework.org/schema/security"
8        xsi:schemaLocation="
9 http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
10 http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
11 http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
12 http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-2.0.4.xsd">
13     <http auto-config="true">
14         <intercept-url pattern="/**/*" access="ROLE_TECHNICIAN"/>
15         <http-basic />
16     </http>
17     <authentication-provider>
18         <user-service>
19             <user name="modhu" password="modhu" authorities="ROLE_USER, ROLE_ADMIN, ROLE_TECHNICIAN" />
20             <user name="imyousuf" password="imyousuf" authorities="ROLE_USER" />
21         </user-service>
22     </authentication-provider>
23 </beans:beans>