-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathapplicationContext.xml
More file actions
131 lines (112 loc) · 4.86 KB
/
applicationContext.xml
File metadata and controls
131 lines (112 loc) · 4.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<?xml version="1.0" encoding="UTF-8"?>
<objects xmlns="http://www.springframework.org/springpython/schema/objects"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/springpython/schema/objects
http://springpython.webfactional.com/schema/context/spring-python-context-1.0.xsd">
<object id="controller" class="controller.SpringWikiController"/>
<object id="read" class="view.Springwiki">
<property name="controller" ref="controller"/>
</object>
<object id="userDetailsService2" class="springpython.security.userdetails.InMemoryUserDetailsService">
<property name="user_dict">
<dict>
<entry>
<key><value>writer</value></key>
<tuple>
<value>comein</value>
<list><value>VET_ANY</value></list>
<value>True</value>
</tuple>
</entry>
</dict>
</property>
</object>
<object id="plainEncoder" class="springpython.security.providers.encoding.PlaintextPasswordEncoder"/>
<object id="plainAuthenticationProvider" class="springpython.security.providers.dao.DaoAuthenticationProvider">
<property name="user_details_service" ref="userDetailsService2"/>
<property name="password_encoder" ref="plainEncoder"/>
</object>
<object id="authenticationManager" class="springpython.security.providers.AuthenticationManager">
<property name="auth_providers">
<list>
<ref object="plainAuthenticationProvider"/>
</list>
</property>
</object>
<object id="authenticationProcessingFilter" class="springpython.security.web.AuthenticationProcessingFilter">
<property name="auth_manager" ref="authenticationManager"/>
<property name="alwaysReauthenticate">False</property>
</object>
<object id="cherrypySessionStrategy" class="springpython.security.cherrypy3.CP3SessionStrategy"/>
<object id="redirectStrategy" class="springpython.security.cherrypy3.CP3RedirectStrategy"/>
<object id="httpContextFilter" class="springpython.security.web.HttpSessionContextIntegrationFilter">
<property name="sessionStrategy" ref="cherrypySessionStrategy"/>
</object>
<object id="authenticationProcessingFilterEntryPoint" class="springpython.security.web.AuthenticationProcessingFilterEntryPoint">
<property name="loginFormUrl" value="/login"></property>
<property name="redirectStrategy" ref="redirectStrategy"/>
</object>
<object id="accessDeniedHandler" class="springpython.security.web.SimpleAccessDeniedHandler">
<property name="errorPage" value="/accessDenied"></property>
<property name="redirectStrategy" ref="redirectStrategy"/>
</object>
<object id="exceptionTranslationFilter" class="springpython.security.web.ExceptionTranslationFilter">
<property name="authenticationEntryPoint" ref="authenticationProcessingFilterEntryPoint"/>
<property name="accessDeniedHandler" ref="accessDeniedHandler"/>
</object>
<object id="filterSecurityInterceptor" class="springpython.security.web.FilterSecurityInterceptor">
<property name="validate_config_attributes" value="False"/>
<property name="auth_manager" ref="authenticationManager"/>
<property name="access_decision_mgr" ref="accessDecisionManager"/>
<property name="sessionStrategy" ref="cherrypySessionStrategy"/>
<property name="obj_def_source">
<list>
<tuple>
<value>/.*</value>
<list><value>VET_ANY</value><value>CUSTOMER_ANY</value></list>
</tuple>
</list>
</property>
</object>
<object id="vetRoleVoter" class="springpython.security.vote.RoleVoter">
<property name="role_prefix" value="VET"/>
</object>
<object id="customerRoleVoter" class="springpython.security.vote.RoleVoter">
<property name="role_prefix" value="CUSTOMER"/>
</object>
<object id="accessDecisionManager" class="springpython.security.vote.AffirmativeBased">
<property name="allow_if_all_abstain" value="False"/>
<property name="access_decision_voters">
<list>
<ref object="vetRoleVoter"/>
<ref object="customerRoleVoter"/>
</list>
</property>
</object>
<object id="filterChainProxy" class="springpython.security.cherrypy3.CP3FilterChainProxy">
<property name="filterInvocationDefinitionSource">
<list>
<tuple>
<value>/login.*</value>
<list><value>httpContextFilter</value></list>
</tuple>
<tuple>
<value>/.*</value>
<list>
<value>httpContextFilter</value>
<value>exceptionTranslationFilter</value>
<value>authenticationProcessingFilter</value>
<value>filterSecurityInterceptor</value>
</list>
</tuple>
</list>
</property>
</object>
<object id="loginForm" class="view.CherryPyAuthenticationForm">
<property name="filter" ref="authenticationProcessingFilter"/>
<property name="controller" ref="controller"/>
<property name="authenticationManager" ref="authenticationManager"/>
<property name="redirectStrategy" ref="redirectStrategy"/>
<property name="httpContextFilter" ref="httpContextFilter" />
</object>
</objects>