|
1 | | -<?xml version="1.0" encoding="UTF-8"?> |
2 | | -<objects xmlns="http://www.springframework.org/springpython/schema/objects" |
3 | | - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
4 | | - xsi:schemaLocation="http://www.springframework.org/springpython/schema/objects |
5 | | - http://springpython.webfactional.com/schema/context/spring-python-context-1.0.xsd"> |
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<objects xmlns="http://www.springframework.org/springpython/schema/objects" |
| 3 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 4 | + xsi:schemaLocation="http://www.springframework.org/springpython/schema/objects |
| 5 | + http://springpython.webfactional.com/schema/context/spring-python-context-1.0.xsd"> |
6 | 6 |
|
7 | 7 | <object id="user_details_service" class="springpython.security.userdetails.InMemoryUserDetailsService"> |
8 | | - <property name="user_dict"> |
9 | | - <dict> |
10 | | - <entry> |
11 | | - <key><value>basicblueuser</value></key> |
12 | | - <tuple> |
13 | | - <value>password1</value> |
14 | | - <list><value>ROLE_BASIC</value><value>ASSIGNED_BLUE</value></list> |
15 | | - <value>True</value> |
16 | | - </tuple> |
| 8 | + <property name="user_dict"> |
| 9 | + <dict> |
| 10 | + <entry> |
| 11 | + <key><value>basicblueuser</value></key> |
| 12 | + <tuple> |
| 13 | + <value>password1</value> |
| 14 | + <list><value>ROLE_BASIC</value><value>ASSIGNED_BLUE</value></list> |
| 15 | + <value>True</value> |
| 16 | + </tuple> |
17 | 17 | </entry> |
18 | | - <entry> |
19 | | - <key><value>basicorangeuser</value></key> |
20 | | - <tuple> |
21 | | - <value>password2</value> |
22 | | - <list><value>ROLE_BASIC</value><value>ASSIGNED_ORANGE</value></list> |
23 | | - <value>True</value> |
24 | | - </tuple> |
25 | | - </entry> |
26 | | - <entry> |
27 | | - <key><value>otherblueuser</value></key> |
28 | | - <tuple> |
29 | | - <value>password3</value> |
30 | | - <list><value>ROLE_OTHER</value><value>ASSIGNED_BLUE</value></list> |
31 | | - <value>True</value> |
32 | | - </tuple> |
33 | | - </entry> |
34 | | - <entry> |
35 | | - <key><value>otherorangeuser</value></key> |
36 | | - <tuple> |
37 | | - <value>password4</value> |
38 | | - <list><value>ROLE_OTHER</value><value>ASSIGNED_ORANGE</value></list> |
39 | | - <value>True</value> |
40 | | - </tuple> |
41 | | - </entry> |
42 | | - </dict> |
| 18 | + <entry> |
| 19 | + <key><value>basicorangeuser</value></key> |
| 20 | + <tuple> |
| 21 | + <value>password2</value> |
| 22 | + <list><value>ROLE_BASIC</value><value>ASSIGNED_ORANGE</value></list> |
| 23 | + <value>True</value> |
| 24 | + </tuple> |
| 25 | + </entry> |
| 26 | + <entry> |
| 27 | + <key><value>otherblueuser</value></key> |
| 28 | + <tuple> |
| 29 | + <value>password3</value> |
| 30 | + <list><value>ROLE_OTHER</value><value>ASSIGNED_BLUE</value></list> |
| 31 | + <value>True</value> |
| 32 | + </tuple> |
| 33 | + </entry> |
| 34 | + <entry> |
| 35 | + <key><value>otherorangeuser</value></key> |
| 36 | + <tuple> |
| 37 | + <value>password4</value> |
| 38 | + <list><value>ROLE_OTHER</value><value>ASSIGNED_ORANGE</value></list> |
| 39 | + <value>True</value> |
| 40 | + </tuple> |
| 41 | + </entry> |
| 42 | + </dict> |
43 | 43 | </property> |
44 | 44 | </object> |
45 | 45 |
|
|
48 | 48 | </object> |
49 | 49 |
|
50 | 50 | <object id="auth_manager" class="springpython.security.providers.AuthenticationManager"> |
51 | | - <property name="auth_providers"> |
| 51 | + <property name="auth_providers"> |
52 | 52 | <list><ref object="auth_provider"/></list> |
53 | 53 | </property> |
54 | 54 | </object> |
|
60 | 60 | </object> |
61 | 61 |
|
62 | 62 | <object id="access_decision_mgr" class="springpython.security.vote.UnanimousBased"> |
63 | | - <property name="allow_if_all_abstain">False</property> |
64 | | - <property name="access_decision_voters"> |
| 63 | + <property name="allow_if_all_abstain" value="False" /> |
| 64 | + <property name="access_decision_voters"> |
65 | 65 | <list> |
66 | 66 | <ref object="roleVoter"/> |
67 | | - <ref object="assignedVoter"/> |
| 67 | + <ref object="assignedVoter"/> |
68 | 68 | </list> |
69 | 69 | </property> |
70 | 70 | </object> |
71 | 71 |
|
72 | 72 | <object id="securityInterceptor" class="springpython.security.intercept.MethodSecurityInterceptor"> |
73 | | - <property name="validate_config_attributes">False</property> |
| 73 | + <property name="validate_config_attributes" value="False" /> |
74 | 74 | <property name="auth_manager" ref="auth_manager"/> |
75 | 75 | <property name="access_decision_mgr" ref="access_decision_mgr"/> |
76 | | - <property name="obj_def_source"> |
77 | | - <list> |
78 | | - <tuple> |
79 | | - <value>springpythontest.support.testSecurityClasses.SampleService.do.*</value> |
80 | | - <list><value>ROLE_BASIC</value><value>ASSIGNED_BLUE</value></list> |
81 | | - </tuple> |
| 76 | + <property name="obj_def_source"> |
| 77 | + <list> |
| 78 | + <tuple> |
| 79 | + <value>springpythontest.support.testSecurityClasses.SampleService.do.*</value> |
| 80 | + <list><value>ROLE_BASIC</value><value>ASSIGNED_BLUE</value></list> |
| 81 | + </tuple> |
82 | 82 | </list> |
83 | 83 | </property> |
84 | 84 | </object> |
|
87 | 87 |
|
88 | 88 | <object id="sampleService" class="springpython.aop.ProxyFactoryObject"> |
89 | 89 | <property name="target" ref="targetService"/> |
90 | | - <property name="interceptors"> |
| 90 | + <property name="interceptors"> |
91 | 91 | <list><ref object="securityInterceptor"/></list> |
92 | 92 | </property> |
93 | 93 | </object> |
|
0 commit comments