Project

General

Profile

« Previous | Next » 

Revision 39533

not using cnr-inspector-security, so we can tune the rights access from an application context inside this webapp

View differences:

webapps/dnet-mincyt-container/trunk/src/main/resources/eu/dnetlib/applicationContext-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" xmlns:p="http://www.springframework.org/schema/p"
4
	xmlns:context="http://www.springframework.org/schema/context"
5
	xmlns:cxf="http://cxf.apache.org/core" xmlns:security="http://www.springframework.org/schema/security"
6
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
7
	http://www.springframework.org/schema/context
8
           http://www.springframework.org/schema/context/spring-context.xsd
9
           http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd 
10
           http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security.xsd">
11

  
12
	<security:http create-session="stateless" >
13
		<security:http-basic />
14
		<security:intercept-url pattern="/mvc/ui/lightui.do**" access="ROLE_USER" />
15
		<security:intercept-url pattern="/mvc/ui/**" access="ROLE_ADMINISTRATOR" />
16
		<security:intercept-url pattern="/mvc/inspector/**" access="ROLE_ADMINISTRATOR" />
17

  
18
		<security:logout logout-url="/logout" logout-success-url="/mvc/ui/index.do" invalidate-session="true"  delete-cookies="JSESSIONID, rinfra-user"/>
19
	</security:http>
20

  
21
	<security:authentication-manager>
22
		<security:authentication-provider>
23
			<security:password-encoder hash="md5" />
24
			<security:user-service>
25
				<security:user name="${dnet.modular.ui.authorization.default.superAdmin}" password="${dnet.admin.password}" authorities="ROLE_USER,ROLE_ADMINISTRATOR" />
26
				<security:user name="${dnet.guest.username}" password="${dnet.guest.password}" authorities="ROLE_USER" />
27
			</security:user-service>
28
		</security:authentication-provider>
29
	</security:authentication-manager>
30

  
31
</beans>
webapps/dnet-mincyt-container/trunk/pom.xml
4 4
	<parent>
5 5
		<groupId>eu.dnetlib</groupId>
6 6
		<artifactId>dnet-container-parent</artifactId>
7
		<version>1.0.0-SNAPSHOT</version>
7
		<version>1.0.0</version>
8 8
		<relativePath></relativePath>
9 9
	</parent>
10 10
	<modelVersion>4.0.0</modelVersion>
......
155 155

  
156 156
		<dependency>
157 157
			<groupId>eu.dnetlib</groupId>
158
			<artifactId>cnr-inspector-security</artifactId>
159
			<version>[1.0.0,2.0.0)</version>
160
		</dependency>
161
		<dependency>
162
			<groupId>eu.dnetlib</groupId>
163 158
			<artifactId>dnet-webapp-monitoring</artifactId>
164 159
			<version>[1.0.0,2.0.0)</version>
165 160
		</dependency>
......
209 204
			<version>[2.0.0,3.0.0)</version>
210 205
		</dependency>
211 206

  
212
	</dependencies>
213 207

  
208
		<!-- Security: not using cnr-inspector-security in order to tune the access policies in the container's applicationContext-security -->
209

  
210
		<dependency>
211
			<groupId>org.springframework.security</groupId>
212
			<artifactId>spring-security-web</artifactId>
213
			<version>3.2.5.RELEASE</version>
214
			<exclusions>
215
				<exclusion>
216
					<artifactId>spring-core</artifactId>
217
					<groupId>org.springframework</groupId>
218
				</exclusion>
219
			</exclusions>
220
		</dependency>
221
		<dependency>
222
			<groupId>org.springframework.security</groupId>
223
			<artifactId>spring-security-config</artifactId>
224
			<version>3.2.5.RELEASE</version>
225
			<exclusions>
226
				<exclusion>
227
					<artifactId>spring-core</artifactId>
228
					<groupId>org.springframework</groupId>
229
				</exclusion>
230
			</exclusions>
231
		</dependency>
232
		<dependency>
233
			<groupId>org.springframework</groupId>
234
			<artifactId>spring-context</artifactId>
235
			<version>${spring.version}</version>
236
		</dependency>
237
		<dependency>
238
			<groupId>org.springframework</groupId>
239
			<artifactId>spring-tx</artifactId>
240
			<version>${spring.version}</version>
241
		</dependency>
242
</dependencies>
243

  
214 244
</project>

Also available in: Unified diff