Revision 1296ca5e
Added by Alexander Oppermann about 10 years ago
.gitattributes | ||
---|---|---|
1793 | 1793 |
cdmlib-remote-webapp/src/main/webapp/xsl/statistics.xsl -text |
1794 | 1794 |
cdmlib-remote-webapp/src/main/webapp/xsl/taxon.xsl -text |
1795 | 1795 |
cdmlib-remote-webapp/src/test/java/eu/etaxonomy/AppTest.java -text |
1796 |
cdmlib-remote/.springBeans -text |
|
1796 | 1797 |
cdmlib-remote/LICENSE.TXT -text |
1797 | 1798 |
cdmlib-remote/README.TXT -text |
1798 | 1799 |
cdmlib-remote/pom.xml -text |
... | ... | |
2058 | 2059 |
cdmlib-remote/src/main/java/eu/etaxonomy/remote/dto/rdf/Rdf.java -text |
2059 | 2060 |
cdmlib-remote/src/main/java/net/sf/json/CycleSetAcess.java -text |
2060 | 2061 |
cdmlib-remote/src/main/java/ru/xpoft/vaadin/CdmDiscoveryNavigator.java -text |
2062 |
cdmlib-remote/src/main/resources/eu/etaxonomy/cdm/remote-security.xml -text |
|
2061 | 2063 |
cdmlib-remote/src/main/resources/eu/etaxonomy/cdm/remote.xml -text |
2062 | 2064 |
cdmlib-remote/src/main/resources/eu/etaxonomy/cdm/remote/dto/dwc/mappings.xml -text |
2063 | 2065 |
cdmlib-remote/src/main/resources/eu/etaxonomy/cdm/remote/dto/oaipmh/mappings.xml -text |
cdmlib-remote-webapp/src/main/webapp/WEB-INF/applicationContext.xml | ||
---|---|---|
18 | 18 |
<context:component-scan base-package="eu/etaxonomy/cdm/remote/vaadin/" /> |
19 | 19 |
|
20 | 20 |
|
21 |
<import resource="classpath:/eu/etaxonomy/cdm/remote.xml"/> |
|
22 |
|
|
21 |
<!-- <import resource="classpath:/eu/etaxonomy/cdm/remote.xml"/> |
|
22 |
--> |
|
23 |
<import resource="classpath:/eu/etaxonomy/cdm/remote-security.xml"/> |
|
23 | 24 |
<context:component-scan base-package="eu/etaxonomy/cdm/io"> |
24 | 25 |
<context:exclude-filter type="regex" expression="eu\.etaxonomy\.cdm\.io\.pesi.*" /> |
25 | 26 |
<context:exclude-filter type="regex" expression="eu\.etaxonomy\.cdm\.io\.faunaEuropaea.*" /> |
cdmlib-remote-webapp/src/main/webapp/WEB-INF/web.xml | ||
---|---|---|
144 | 144 |
<!-- |
145 | 145 |
Security |
146 | 146 |
--> |
147 |
<!-- <filter>--> |
|
148 |
<!-- <filter-name>springSecurityFilterChain</filter-name>--> |
|
149 |
<!-- <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>--> |
|
150 |
<!-- </filter>--> |
|
151 |
<!-- <filter-mapping>--> |
|
152 |
<!-- <filter-name>springSecurityFilterChain</filter-name>--> |
|
153 |
<!-- <url-pattern>/*</url-pattern>--> |
|
154 |
<!-- </filter-mapping>--> |
|
155 |
|
|
147 |
<!-- |
|
148 |
<filter> |
|
149 |
<filter-name>springSecurityFilterChain</filter-name> |
|
150 |
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> |
|
151 |
</filter> |
|
152 |
<filter-mapping> |
|
153 |
<filter-name>springSecurityFilterChain</filter-name> |
|
154 |
<url-pattern>/*</url-pattern> |
|
155 |
</filter-mapping> |
|
156 |
--> |
|
156 | 157 |
|
157 | 158 |
</web-app> |
cdmlib-remote/.springBeans | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<beansProjectDescription> |
|
3 |
<version>1</version> |
|
4 |
<pluginVersion><![CDATA[3.4.0.201310051539-RELEASE]]></pluginVersion> |
|
5 |
<configSuffixes> |
|
6 |
<configSuffix><![CDATA[xml]]></configSuffix> |
|
7 |
</configSuffixes> |
|
8 |
<enableImports><![CDATA[false]]></enableImports> |
|
9 |
<configs> |
|
10 |
<config>src/main/resources/eu/etaxonomy/cdm/remote-security.xml</config> |
|
11 |
</configs> |
|
12 |
<configSets> |
|
13 |
</configSets> |
|
14 |
</beansProjectDescription> |
cdmlib-remote/pom.xml | ||
---|---|---|
69 | 69 |
</exclusion> |
70 | 70 |
</exclusions> |
71 | 71 |
</dependency> |
72 |
<dependency> |
|
73 |
<groupId>org.springframework.security</groupId> |
|
74 |
<artifactId>spring-security-core</artifactId> |
|
75 |
<version>${spring-security.version}</version> |
|
76 |
<exclusions> |
|
77 |
<exclusion> |
|
78 |
<groupId>org.springframework</groupId> |
|
79 |
<artifactId>spring-aop</artifactId> |
|
80 |
</exclusion> |
|
81 |
<exclusion> |
|
82 |
<groupId>org.springframework</groupId> |
|
83 |
<artifactId>spring-beans</artifactId> |
|
84 |
</exclusion> |
|
85 |
<exclusion> |
|
86 |
<groupId>org.springframework</groupId> |
|
87 |
<artifactId>spring-context</artifactId> |
|
88 |
</exclusion> |
|
89 |
<exclusion> |
|
90 |
<groupId>org.springframework</groupId> |
|
91 |
<artifactId>spring-core</artifactId> |
|
92 |
</exclusion> |
|
93 |
<exclusion> |
|
94 |
<groupId>org.springframework</groupId> |
|
95 |
<artifactId>spring-expression</artifactId> |
|
96 |
</exclusion> |
|
97 |
<exclusion> |
|
98 |
<groupId>org.springframework</groupId> |
|
99 |
<artifactId>spring-tx</artifactId> |
|
100 |
</exclusion> |
|
101 |
</exclusions> |
|
102 |
</dependency> |
|
103 |
<dependency> |
|
104 |
<groupId>org.springframework.security</groupId> |
|
105 |
<artifactId>spring-security-config</artifactId> |
|
106 |
<version>${spring-security.version}</version> |
|
107 |
<exclusions> |
|
108 |
<exclusion> |
|
109 |
<groupId>org.springframework</groupId> |
|
110 |
<artifactId>spring-aop</artifactId> |
|
111 |
</exclusion> |
|
112 |
<exclusion> |
|
113 |
<groupId>org.springframework</groupId> |
|
114 |
<artifactId>spring-beans</artifactId> |
|
115 |
</exclusion> |
|
116 |
<exclusion> |
|
117 |
<groupId>org.springframework</groupId> |
|
118 |
<artifactId>spring-context</artifactId> |
|
119 |
</exclusion> |
|
120 |
<exclusion> |
|
121 |
<groupId>org.springframework</groupId> |
|
122 |
<artifactId>spring-core</artifactId> |
|
123 |
</exclusion> |
|
124 |
<exclusion> |
|
125 |
<groupId>org.springframework</groupId> |
|
126 |
<artifactId>spring-web</artifactId> |
|
127 |
</exclusion> |
|
128 |
</exclusions> |
|
129 |
</dependency> |
|
130 |
<dependency> |
|
131 |
<groupId>org.springframework.security</groupId> |
|
132 |
<artifactId>spring-security-web</artifactId> |
|
133 |
<version>${spring-security.version}</version> |
|
134 |
<exclusions> |
|
135 |
<exclusion> |
|
136 |
<groupId>org.springframework</groupId> |
|
137 |
<artifactId>spring-aop</artifactId> |
|
138 |
</exclusion> |
|
139 |
<exclusion> |
|
140 |
<groupId>org.springframework</groupId> |
|
141 |
<artifactId>spring-beans</artifactId> |
|
142 |
</exclusion> |
|
143 |
<exclusion> |
|
144 |
<groupId>org.springframework</groupId> |
|
145 |
<artifactId>spring-context</artifactId> |
|
146 |
</exclusion> |
|
147 |
<exclusion> |
|
148 |
<groupId>org.springframework</groupId> |
|
149 |
<artifactId>spring-core</artifactId> |
|
150 |
</exclusion> |
|
151 |
<exclusion> |
|
152 |
<groupId>org.springframework</groupId> |
|
153 |
<artifactId>spring-web</artifactId> |
|
154 |
</exclusion> |
|
155 |
</exclusions> |
|
156 |
</dependency> |
|
72 | 157 |
<dependency> |
73 | 158 |
<groupId>org.unitils</groupId> |
74 | 159 |
<artifactId>unitils-core</artifactId> |
cdmlib-remote/src/main/resources/eu/etaxonomy/cdm/remote-security.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
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" |
|
5 |
xsi:schemaLocation="http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.1.xsd |
|
6 |
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> |
|
7 |
|
|
8 |
<import resource="remote.xml"/> |
|
9 |
|
|
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> |
|
15 |
|
|
16 |
--> |
|
17 |
|
|
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 |
</beans> |
Also available in: Unified diff
Spring Security configuration added for remote and web app