Revision 45165
Added by Claudio Atzori over 6 years ago
modules/cnr-inspector-security/trunk/.project | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<projectDescription> |
|
3 |
<name>cnr-inspector-security</name> |
|
4 |
<comment></comment> |
|
5 |
<projects> |
|
6 |
</projects> |
|
7 |
<buildSpec> |
|
8 |
<buildCommand> |
|
9 |
<name>org.eclipse.wst.common.project.facet.core.builder</name> |
|
10 |
<arguments> |
|
11 |
</arguments> |
|
12 |
</buildCommand> |
|
13 |
<buildCommand> |
|
14 |
<name>org.eclipse.jdt.core.javabuilder</name> |
|
15 |
<arguments> |
|
16 |
</arguments> |
|
17 |
</buildCommand> |
|
18 |
<buildCommand> |
|
19 |
<name>org.eclipse.m2e.core.maven2Builder</name> |
|
20 |
<arguments> |
|
21 |
</arguments> |
|
22 |
</buildCommand> |
|
23 |
<buildCommand> |
|
24 |
<name>org.springframework.ide.eclipse.core.springbuilder</name> |
|
25 |
<arguments> |
|
26 |
</arguments> |
|
27 |
</buildCommand> |
|
28 |
<buildCommand> |
|
29 |
<name>org.eclipse.wst.validation.validationbuilder</name> |
|
30 |
<arguments> |
|
31 |
</arguments> |
|
32 |
</buildCommand> |
|
33 |
</buildSpec> |
|
34 |
<natures> |
|
35 |
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature> |
|
36 |
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature> |
|
37 |
<nature>org.springframework.ide.eclipse.core.springnature</nature> |
|
38 |
<nature>org.eclipse.m2e.core.maven2Nature</nature> |
|
39 |
<nature>org.eclipse.jdt.core.javanature</nature> |
|
40 |
<nature>org.eclipse.wst.common.project.facet.core.nature</nature> |
|
41 |
</natures> |
|
42 |
</projectDescription> |
modules/cnr-inspector-security/trunk/deploy.info | ||
---|---|---|
1 |
{"type_source": "SVN", "goal": "package -U -T 4C source:jar", "url": "http://svn-public.driver.research-infrastructures.eu/driver/dnet40/modules/cnr-inspector-security/trunk/", "deploy_repository": "dnet4-snapshots", "version": "4", "mail": "sandro.labruzzo@isti.cnr.it,michele.artini@isti.cnr.it, claudio.atzori@isti.cnr.it, alessia.bardi@isti.cnr.it", "deploy_repository_url": "http://maven.research-infrastructures.eu/nexus/content/repositories/dnet4-snapshots", "name": "cnr-inspector-security"} |
modules/cnr-inspector-security/trunk/src/main/resources/eu/dnetlib/applicationContext-inspector-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: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 http://www.springframework.org/schema/context/spring-context.xsd |
|
8 |
http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security.xsd"> |
|
9 |
|
|
10 |
<!-- <security:debug /> --> |
|
11 |
|
|
12 |
<security:http create-session="stateless"> |
|
13 |
|
|
14 |
<security:http-basic /> |
|
15 |
|
|
16 |
<security:intercept-url |
|
17 |
pattern="/mvc/inspector/index.do/**/Security**/**/show" access="ROLE_USER" /> |
|
18 |
<security:intercept-url pattern="/mvc/inspector/index.do/**/User**/**/show" |
|
19 |
access="ROLE_USER" /> |
|
20 |
<security:intercept-url |
|
21 |
pattern="/mvc/inspector/index.do/**/Security**/**/list" access="ROLE_USER" /> |
|
22 |
<security:intercept-url pattern="/mvc/inspector/index.do/**/User**/**/list" |
|
23 |
access="ROLE_USER" /> |
|
24 |
<security:intercept-url pattern="/mvc/inspector/index.do/**/show" |
|
25 |
access="ROLE_ANONYMOUS, ROLE_USER" /> |
|
26 |
<security:intercept-url pattern="/mvc/inspector/index.do/**/list" |
|
27 |
access="ROLE_ANONYMOUS, ROLE_USER" /> |
|
28 |
<security:intercept-url pattern="/mvc/inspector/msroProcessImage.do/**" |
|
29 |
access="ROLE_ANONYMOUS, ROLE_USER" /> |
|
30 |
<security:intercept-url pattern="/mvc/inspector/backup.do/**" |
|
31 |
access="ROLE_ANONYMOUS, ROLE_USER" /> |
|
32 |
<security:intercept-url pattern="/mvc/inspector/static.do/**" |
|
33 |
access="ROLE_ANONYMOUS, ROLE_USER" /> |
|
34 |
<security:intercept-url pattern="/mvc/oai/**" |
|
35 |
access="ROLE_ANONYMOUS, ROLE_USER" /> |
|
36 |
<security:intercept-url pattern="/mvc/inspector/**" |
|
37 |
access="ROLE_USER" /> |
|
38 |
<security:intercept-url pattern="/mvc/ui/**" |
|
39 |
access="ROLE_USER" /> |
|
40 |
<security:intercept-url pattern="/monitoring/**" |
|
41 |
access="ROLE_USER" /> |
|
42 |
|
|
43 |
<security:anonymous username="guest" |
|
44 |
granted-authority="ROLE_ANONYMOUS" /> |
|
45 |
</security:http> |
|
46 |
|
|
47 |
<security:authentication-manager> |
|
48 |
<security:authentication-provider> |
|
49 |
<security:password-encoder hash="md5" /> |
|
50 |
<security:user-service> |
|
51 |
<security:user name="admin" password="${inspector.admin.password}" |
|
52 |
authorities="ROLE_USER" /> |
|
53 |
</security:user-service> |
|
54 |
</security:authentication-provider> |
|
55 |
</security:authentication-manager> |
|
56 |
|
|
57 |
</beans> |
modules/cnr-inspector-security/trunk/src/main/resources/eu/dnetlib/applicationContext-inspector-security.properties | ||
---|---|---|
1 |
inspector.admin.password=e2d45d57c7e2941b65c6ccd64af4223e |
|
2 |
|
modules/cnr-inspector-security/trunk/pom.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
|
3 |
<parent> |
|
4 |
<groupId>eu.dnetlib</groupId> |
|
5 |
<artifactId>dnet-parent</artifactId> |
|
6 |
<version>1.0.0</version> |
|
7 |
<relativePath /> |
|
8 |
</parent> |
|
9 |
<modelVersion>4.0.0</modelVersion> |
|
10 |
<groupId>eu.dnetlib</groupId> |
|
11 |
<artifactId>cnr-inspector-security</artifactId> |
|
12 |
<packaging>jar</packaging> |
|
13 |
<version>1.0.1-SNAPSHOT</version> |
|
14 |
<scm> |
|
15 |
<developerConnection>scm:svn:https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/cnr-inspector-security/trunk</developerConnection> |
|
16 |
</scm> |
|
17 |
<dependencies> |
|
18 |
<dependency> |
|
19 |
<groupId>junit</groupId> |
|
20 |
<artifactId>junit</artifactId> |
|
21 |
<version>${junit.version}</version> |
|
22 |
<scope>test</scope> |
|
23 |
</dependency> |
|
24 |
<dependency> |
|
25 |
<groupId>org.springframework.security</groupId> |
|
26 |
<artifactId>spring-security-web</artifactId> |
|
27 |
<version>3.2.1.RELEASE</version> |
|
28 |
</dependency> |
|
29 |
<dependency> |
|
30 |
<groupId>org.springframework.security</groupId> |
|
31 |
<artifactId>spring-security-config</artifactId> |
|
32 |
<version>3.2.1.RELEASE</version> |
|
33 |
</dependency> |
|
34 |
<dependency> |
|
35 |
<groupId>org.springframework</groupId> |
|
36 |
<artifactId>spring-context</artifactId> |
|
37 |
<version>${spring.version}</version> |
|
38 |
</dependency> |
|
39 |
<dependency> |
|
40 |
<groupId>org.springframework</groupId> |
|
41 |
<artifactId>spring-tx</artifactId> |
|
42 |
<version>${spring.version}</version> |
|
43 |
</dependency> |
|
44 |
<dependency> |
|
45 |
<groupId>javax.servlet</groupId> |
|
46 |
<artifactId>javax.servlet-api</artifactId> |
|
47 |
<version>3.1.0</version> |
|
48 |
<scope>provided</scope> |
|
49 |
</dependency> |
|
50 |
|
|
51 |
|
|
52 |
</dependencies> |
|
53 |
</project> |
modules/cnr-inspector-security/tags/cnr-inspector-security-1.0.0/.project | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<projectDescription> |
|
3 |
<name>cnr-inspector-security</name> |
|
4 |
<comment></comment> |
|
5 |
<projects> |
|
6 |
</projects> |
|
7 |
<buildSpec> |
|
8 |
<buildCommand> |
|
9 |
<name>org.eclipse.wst.common.project.facet.core.builder</name> |
|
10 |
<arguments> |
|
11 |
</arguments> |
|
12 |
</buildCommand> |
|
13 |
<buildCommand> |
|
14 |
<name>org.eclipse.jdt.core.javabuilder</name> |
|
15 |
<arguments> |
|
16 |
</arguments> |
|
17 |
</buildCommand> |
|
18 |
<buildCommand> |
|
19 |
<name>org.eclipse.m2e.core.maven2Builder</name> |
|
20 |
<arguments> |
|
21 |
</arguments> |
|
22 |
</buildCommand> |
|
23 |
<buildCommand> |
|
24 |
<name>org.springframework.ide.eclipse.core.springbuilder</name> |
|
25 |
<arguments> |
|
26 |
</arguments> |
|
27 |
</buildCommand> |
|
28 |
<buildCommand> |
|
29 |
<name>org.eclipse.wst.validation.validationbuilder</name> |
|
30 |
<arguments> |
|
31 |
</arguments> |
|
32 |
</buildCommand> |
|
33 |
</buildSpec> |
|
34 |
<natures> |
|
35 |
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature> |
|
36 |
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature> |
|
37 |
<nature>org.springframework.ide.eclipse.core.springnature</nature> |
|
38 |
<nature>org.eclipse.m2e.core.maven2Nature</nature> |
|
39 |
<nature>org.eclipse.jdt.core.javanature</nature> |
|
40 |
<nature>org.eclipse.wst.common.project.facet.core.nature</nature> |
|
41 |
</natures> |
|
42 |
</projectDescription> |
modules/cnr-inspector-security/tags/cnr-inspector-security-1.0.0/deploy.info | ||
---|---|---|
1 |
{"type_source": "SVN", "goal": "package -U -T 4C source:jar", "url": "http://svn-public.driver.research-infrastructures.eu/driver/dnet40/modules/cnr-inspector-security/trunk/", "deploy_repository": "dnet4-snapshots", "version": "4", "mail": "sandro.labruzzo@isti.cnr.it,michele.artini@isti.cnr.it, claudio.atzori@isti.cnr.it, alessia.bardi@isti.cnr.it", "deploy_repository_url": "http://maven.research-infrastructures.eu/nexus/content/repositories/dnet4-snapshots", "name": "cnr-inspector-security"} |
modules/cnr-inspector-security/tags/cnr-inspector-security-1.0.0/src/main/resources/eu/dnetlib/applicationContext-inspector-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: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 http://www.springframework.org/schema/context/spring-context.xsd |
|
8 |
http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security.xsd"> |
|
9 |
|
|
10 |
<!-- <security:debug /> --> |
|
11 |
|
|
12 |
<security:http create-session="stateless"> |
|
13 |
|
|
14 |
<security:http-basic /> |
|
15 |
|
|
16 |
<security:intercept-url |
|
17 |
pattern="/mvc/inspector/index.do/**/Security**/**/show" access="ROLE_USER" /> |
|
18 |
<security:intercept-url pattern="/mvc/inspector/index.do/**/User**/**/show" |
|
19 |
access="ROLE_USER" /> |
|
20 |
<security:intercept-url |
|
21 |
pattern="/mvc/inspector/index.do/**/Security**/**/list" access="ROLE_USER" /> |
|
22 |
<security:intercept-url pattern="/mvc/inspector/index.do/**/User**/**/list" |
|
23 |
access="ROLE_USER" /> |
|
24 |
<security:intercept-url pattern="/mvc/inspector/index.do/**/show" |
|
25 |
access="ROLE_ANONYMOUS, ROLE_USER" /> |
|
26 |
<security:intercept-url pattern="/mvc/inspector/index.do/**/list" |
|
27 |
access="ROLE_ANONYMOUS, ROLE_USER" /> |
|
28 |
<security:intercept-url pattern="/mvc/inspector/msroProcessImage.do/**" |
|
29 |
access="ROLE_ANONYMOUS, ROLE_USER" /> |
|
30 |
<security:intercept-url pattern="/mvc/inspector/backup.do/**" |
|
31 |
access="ROLE_ANONYMOUS, ROLE_USER" /> |
|
32 |
<security:intercept-url pattern="/mvc/inspector/static.do/**" |
|
33 |
access="ROLE_ANONYMOUS, ROLE_USER" /> |
|
34 |
<security:intercept-url pattern="/mvc/oai/**" |
|
35 |
access="ROLE_ANONYMOUS, ROLE_USER" /> |
|
36 |
<security:intercept-url pattern="/mvc/inspector/**" |
|
37 |
access="ROLE_USER" /> |
|
38 |
<security:intercept-url pattern="/mvc/ui/**" |
|
39 |
access="ROLE_USER" /> |
|
40 |
<security:intercept-url pattern="/monitoring/**" |
|
41 |
access="ROLE_USER" /> |
|
42 |
|
|
43 |
<security:anonymous username="guest" |
|
44 |
granted-authority="ROLE_ANONYMOUS" /> |
|
45 |
</security:http> |
|
46 |
|
|
47 |
<security:authentication-manager> |
|
48 |
<security:authentication-provider> |
|
49 |
<security:password-encoder hash="md5" /> |
|
50 |
<security:user-service> |
|
51 |
<security:user name="admin" password="${inspector.admin.password}" |
|
52 |
authorities="ROLE_USER" /> |
|
53 |
</security:user-service> |
|
54 |
</security:authentication-provider> |
|
55 |
</security:authentication-manager> |
|
56 |
|
|
57 |
</beans> |
modules/cnr-inspector-security/tags/cnr-inspector-security-1.0.0/src/main/resources/eu/dnetlib/applicationContext-inspector-security.properties | ||
---|---|---|
1 |
inspector.admin.password=e2d45d57c7e2941b65c6ccd64af4223e |
|
2 |
|
modules/cnr-inspector-security/tags/cnr-inspector-security-1.0.0/pom.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
|
3 |
<parent> |
|
4 |
<groupId>eu.dnetlib</groupId> |
|
5 |
<artifactId>dnet-parent</artifactId> |
|
6 |
<version>1.0.0</version> |
|
7 |
<relativePath /> |
|
8 |
</parent> |
|
9 |
<modelVersion>4.0.0</modelVersion> |
|
10 |
<groupId>eu.dnetlib</groupId> |
|
11 |
<artifactId>cnr-inspector-security</artifactId> |
|
12 |
<packaging>jar</packaging> |
|
13 |
<version>1.0.0</version> |
|
14 |
<scm> |
|
15 |
<developerConnection>scm:svn:https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/cnr-inspector-security/tags/cnr-inspector-security-1.0.0</developerConnection> |
|
16 |
</scm> |
|
17 |
<dependencies> |
|
18 |
<dependency> |
|
19 |
<groupId>junit</groupId> |
|
20 |
<artifactId>junit</artifactId> |
|
21 |
<version>${junit.version}</version> |
|
22 |
<scope>test</scope> |
|
23 |
</dependency> |
|
24 |
<dependency> |
|
25 |
<groupId>org.springframework.security</groupId> |
|
26 |
<artifactId>spring-security-web</artifactId> |
|
27 |
<version>3.2.1.RELEASE</version> |
|
28 |
</dependency> |
|
29 |
<dependency> |
|
30 |
<groupId>org.springframework.security</groupId> |
|
31 |
<artifactId>spring-security-config</artifactId> |
|
32 |
<version>3.2.1.RELEASE</version> |
|
33 |
</dependency> |
|
34 |
<dependency> |
|
35 |
<groupId>org.springframework</groupId> |
|
36 |
<artifactId>spring-context</artifactId> |
|
37 |
<version>${spring.version}</version> |
|
38 |
</dependency> |
|
39 |
<dependency> |
|
40 |
<groupId>org.springframework</groupId> |
|
41 |
<artifactId>spring-tx</artifactId> |
|
42 |
<version>${spring.version}</version> |
|
43 |
</dependency> |
|
44 |
<dependency> |
|
45 |
<groupId>javax.servlet</groupId> |
|
46 |
<artifactId>javax.servlet-api</artifactId> |
|
47 |
<version>3.1.0</version> |
|
48 |
<scope>provided</scope> |
|
49 |
</dependency> |
|
50 |
|
|
51 |
|
|
52 |
</dependencies> |
|
53 |
</project> |
Also available in: Unified diff
codebase used to migrate to java8 the production system