Project

General

Profile

1
<?xml version="1.0" encoding="UTF-8"?>
2
<beans:beans xmlns="http://www.springframework.org/schema/security"
3
             xmlns:beans="http://www.springframework.org/schema/beans"
4
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5
             xmlns:security="http://www.springframework.org/schema/security"
6
             xsi:schemaLocation="
7
    	http://www.springframework.org/schema/beans
8
    	http://www.springframework.org/schema/beans/spring-beans.xsd
9

    
10
        http://www.springframework.org/schema/security
11
        http://www.springframework.org/schema/security/spring-security.xsd">
12

    
13
    <!-- Stateless RESTful services use BASIC authentication -->
14
    <!--<security:http create-session="stateless" pattern="/rest/**">
15
         <security:intercept-url pattern="/**" access="ROLE_REST"/>
16
        <security:http-basic/>
17
    </security:http>
18

    
19

    
20
     <security:authentication-manager>
21
         <security:authentication-provider>
22
             <security:user-service>
23
                 <security:user name="rest" password="rest" authorities="ROLE_REST"/>
24
             </security:user-service>
25
         </security:authentication-provider>
26
     </security:authentication-manager>
27
    -->
28
    <!--
29
    <authentication-manager alias="authenticationManager">
30
        <authentication-provider ref="jwtAuthenticationProvider" />  (8)
31
    </authentication-manager>
32

    
33
    -->
34
</beans:beans>
(4-4/5)