Revision d9848104
Added by Cherian Mathew about 9 years ago
cdmlib-remote/src/main/resources/eu/etaxonomy/cdm/remote-security.xml | ||
---|---|---|
1 | 1 |
<?xml version="1.0" encoding="UTF-8"?> |
2 | 2 |
<beans xmlns="http://www.springframework.org/schema/beans" |
3 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
4 |
xmlns:security="http://www.springframework.org/schema/security" |
|
3 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:security="http://www.springframework.org/schema/security" |
|
5 | 4 |
xsi:schemaLocation="http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.1.xsd |
6 | 5 |
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> |
7 | 6 |
|
8 |
<import resource="remote.xml"/>
|
|
7 |
<import resource="remote.xml" />
|
|
9 | 8 |
|
10 |
<!-- Pattern to intercept URL requests --> |
|
11 |
<!-- |
|
12 |
<security:http auto-config="true" authentication-manager-ref="authenticationManager"> |
|
13 |
<security:intercept-url pattern="/**" access="ROLE_ADMIN" /> |
|
14 |
</security:http> |
|
9 |
<!-- Pattern to intercept URL requests --> |
|
15 | 10 |
|
16 |
--> |
|
11 |
<security:http auto-config="true" authentication-manager-ref="authenticationManager"> |
|
12 |
<security:intercept-url pattern="/remoting/**" access="ROLE_ADMIN,ROLE_PROJECT_MANAGER,ROLE_USER_MANAGER,ROLE_PUBLISH" /> |
|
13 |
<security:http-basic /> |
|
14 |
</security:http> |
|
15 |
|
|
16 |
|
|
17 |
<!-- Pattern to build a security filter chain --> |
|
18 |
|
|
19 |
<!-- <bean id="remotingSpringSecurityFilterChain" class="org.springframework.security.web.FilterChainProxy"> --> |
|
20 |
<!-- <constructor-arg> --> |
|
21 |
<!-- <list> --> |
|
22 |
<!-- <security:filter-chain pattern="/remoting/**" filters="none"/> --> |
|
23 |
<!-- </list> --> |
|
24 |
<!-- </constructor-arg> --> |
|
25 |
<!-- </bean> --> |
|
17 | 26 |
|
18 |
<!-- Pattern to build a security filter chain --> |
|
19 |
<!-- |
|
20 |
<bean id="springSecurityFilterChain" class="org.springframework.security.web.FilterChainProxy"> |
|
21 |
<constructor-arg> |
|
22 |
<list> |
|
23 |
<security:filter-chain pattern="/**" filters="none"/> |
|
24 |
</list> |
|
25 |
</constructor-arg> |
|
26 |
</bean> |
|
27 |
--> |
|
28 | 27 |
</beans> |
Also available in: Unified diff
DeleteResult : made serializable
remote-security : added remoting url intercept
remoting-services : made user service public
web.xml : added filter chain for securing remoting services