|
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="connectionFactory" class="springpython.database.factory.MySQLConnectionFactory"> |
8 | 8 | <property name="username" value="springpython"/> |
|
24 | 24 | </object> |
25 | 25 |
|
26 | 26 | <object id="userDetailsService2" class="springpython.security.userdetails.InMemoryUserDetailsService"> |
27 | | - <property name="user_dict"> |
28 | | - <dict> |
29 | | - <entry> |
30 | | - <key><value>jcarter</value></key> |
31 | | - <tuple> |
32 | | - <value>password6</value> |
33 | | - <list><value>VET_ANY</value></list> |
34 | | - <value>True</value> |
35 | | - </tuple> |
36 | | - </entry> |
| 27 | + <property name="user_dict"> |
| 28 | + <dict> |
| 29 | + <entry> |
| 30 | + <key><value>jcarter</value></key> |
| 31 | + <tuple> |
| 32 | + <value>password6</value> |
| 33 | + <list><value>VET_ANY</value></list> |
| 34 | + <value>True</value> |
| 35 | + </tuple> |
| 36 | + </entry> |
37 | 37 | </dict> |
38 | 38 | </property> |
39 | 39 | </object> |
40 | 40 |
|
41 | 41 | <object id="userDetailsService3" class="springpython.security.userdetails.InMemoryUserDetailsService"> |
42 | 42 | <property name="user_dict"> |
43 | | - <dict> |
44 | | - <entry> |
45 | | - <key><value>jcoleman</value></key> |
46 | | - <tuple> |
47 | | - <value>password5</value> |
48 | | - <list><value>CUSTOMER_ANY</value></list> |
49 | | - <value>True</value> |
50 | | - </tuple> |
51 | | - </entry> |
52 | | - </dict> |
| 43 | + <dict> |
| 44 | + <entry> |
| 45 | + <key><value>jcoleman</value></key> |
| 46 | + <tuple> |
| 47 | + <value>password5</value> |
| 48 | + <list><value>CUSTOMER_ANY</value></list> |
| 49 | + <value>True</value> |
| 50 | + </tuple> |
| 51 | + </entry> |
| 52 | + </dict> |
53 | 53 | </property> |
54 | 54 | </object> |
55 | 55 |
|
|
85 | 85 | </object> |
86 | 86 |
|
87 | 87 | <object id="authenticationManager" class="springpython.security.providers.AuthenticationManager"> |
88 | | - <property name="auth_providers"> |
89 | | - <list> |
90 | | - <ref object="plainAuthenticationProvider"/> |
91 | | - <ref object="md5AuthenticationProvider"/> |
92 | | - <ref object="shaAuthenticationProvider"/> |
| 88 | + <property name="auth_providers"> |
| 89 | + <list> |
| 90 | + <ref object="plainAuthenticationProvider"/> |
| 91 | + <ref object="md5AuthenticationProvider"/> |
| 92 | + <ref object="shaAuthenticationProvider"/> |
93 | 93 | </list> |
94 | 94 | </property> |
95 | 95 | </object> |
|
108 | 108 |
|
109 | 109 | <object id="accessDecisionManager" class="springpython.security.vote.AffirmativeBased"> |
110 | 110 | <property name="allow_if_all_abstain" value="False"/> |
111 | | - <property name="access_decision_voters"> |
112 | | - <list> |
113 | | - <ref object="vetRoleVoter"/> |
114 | | - <ref object="customerRoleVoter"/> |
115 | | - <ref object="ownerVoter"/> |
| 111 | + <property name="access_decision_voters"> |
| 112 | + <list> |
| 113 | + <ref object="vetRoleVoter"/> |
| 114 | + <ref object="customerRoleVoter"/> |
| 115 | + <ref object="ownerVoter"/> |
116 | 116 | </list> |
117 | 117 | </property> |
118 | 118 | </object> |
|
134 | 134 | <property name="auth_manager" ref="authenticationManager"/> |
135 | 135 | <property name="access_decision_mgr" ref="accessDecisionManager"/> |
136 | 136 | <property name="sessionStrategy" ref="cherrypySessionStrategy"/> |
137 | | - <property name="obj_def_source"> |
138 | | - <list> |
139 | | - <tuple> |
140 | | - <value>/vets.*</value> |
141 | | - <list><value>VET_ANY</value></list> |
142 | | - </tuple> |
143 | | - <tuple> |
144 | | - <value>/editOwner.*</value> |
145 | | - <list><value>VET_ANY</value><value>OWNER</value></list> |
146 | | - </tuple> |
147 | | - <tuple> |
148 | | - <value>/.*</value> |
149 | | - <list><value>VET_ANY</value><value>CUSTOMER_ANY</value></list> |
150 | | - </tuple> |
| 137 | + <property name="obj_def_source"> |
| 138 | + <list> |
| 139 | + <tuple> |
| 140 | + <value>/vets.*</value> |
| 141 | + <list><value>VET_ANY</value></list> |
| 142 | + </tuple> |
| 143 | + <tuple> |
| 144 | + <value>/editOwner.*</value> |
| 145 | + <list><value>VET_ANY</value><value>OWNER</value></list> |
| 146 | + </tuple> |
| 147 | + <tuple> |
| 148 | + <value>/.*</value> |
| 149 | + <list><value>VET_ANY</value><value>CUSTOMER_ANY</value></list> |
| 150 | + </tuple> |
151 | 151 | </list> |
152 | 152 | </property> |
153 | 153 | </object> |
|
168 | 168 | </object> |
169 | 169 |
|
170 | 170 | <object id="filterChainProxy" class="springpython.security.cherrypy3.CP3FilterChainProxy"> |
171 | | - <property name="filterInvocationDefinitionSource"> |
172 | | - <list> |
173 | | - <tuple> |
174 | | - <value>/images.*</value> |
175 | | - <list></list> |
176 | | - </tuple> |
177 | | - <tuple> |
178 | | - <value>/html.*</value> |
179 | | - <list></list> |
180 | | - </tuple> |
181 | | - <tuple> |
182 | | - <value>/login.*</value> |
183 | | - <list><value>httpContextFilter</value></list> |
184 | | - </tuple> |
185 | | - <tuple> |
186 | | - <value>/.*</value> |
187 | | - <list> |
188 | | - <value>httpContextFilter</value> |
189 | | - <value>exceptionTranslationFilter</value> |
190 | | - <value>authenticationProcessingFilter</value> |
191 | | - <value>filterSecurityInterceptor</value> |
192 | | - </list> |
193 | | - </tuple> |
| 171 | + <property name="filterInvocationDefinitionSource"> |
| 172 | + <list> |
| 173 | + <tuple> |
| 174 | + <value>/images.*</value> |
| 175 | + <list></list> |
| 176 | + </tuple> |
| 177 | + <tuple> |
| 178 | + <value>/html.*</value> |
| 179 | + <list></list> |
| 180 | + </tuple> |
| 181 | + <tuple> |
| 182 | + <value>/login.*</value> |
| 183 | + <list><value>httpContextFilter</value></list> |
| 184 | + </tuple> |
| 185 | + <tuple> |
| 186 | + <value>/.*</value> |
| 187 | + <list> |
| 188 | + <value>httpContextFilter</value> |
| 189 | + <value>exceptionTranslationFilter</value> |
| 190 | + <value>authenticationProcessingFilter</value> |
| 191 | + <value>filterSecurityInterceptor</value> |
| 192 | + </list> |
| 193 | + </tuple> |
194 | 194 | </list> |
195 | 195 | </property> |
196 | 196 | </object> |
|
0 commit comments