Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CHOReVOLUTION
security-filter
Commits
728d9958
Commit
728d9958
authored
Sep 19, 2016
by
Francesco Chicchiriccò
Browse files
Splitting the code into a small AL 2.0 library for shared usage with ConnId Security Filter
parent
b3787449
Changes
18
Hide whitespace changes
Inline
Side-by-side
.gitignore
0 → 100644
View file @
728d9958
/Security-filter-impl/target/
\ No newline at end of file
Security-filter-gen/pom.xml
View file @
728d9958
<!-- Copyright 2015 The CHOReVOLUTION project Licensed under the Apache License,
Version 2.0 (the "License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
OR CONDITIONS OF ANY KIND, either express or implied. See the License for
the specific language governing permissions and limitations under the License. -->
<?xml version="1.0" encoding="UTF-8"?>
<!--
SF-generator - SF-generator Bundle
Copyright (C) 2015 The CHOReVOLUTION project
<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/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
eu.chorevolution.transformations.sfgenerator
</groupId>
<artifactId>
sf-generator
</artifactId>
<version>
1.0.0-SNAPSHOT
</version>
<name>
CHOReVOLUTION SF-generator - SF-generator Bundle
</name>
<packaging>
jar
</packaging>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
<properties>
<java.version>
1.8
</java.version>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
</properties>
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
<organization>
<name>
The CHOReVOLUTION project
</name>
<url>
http://www.chorevolution.eu
</url>
</organization>
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<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/xsd/maven-4.0.0.xsd"
>
<licenses>
<license>
<name>
GPL v3.0
</name>
<url>
http://www.gnu.org/licenses/gpl-3.0.en.html
</url>
<distribution>
repo
</distribution>
</license>
</licenses>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
eu.chorevolution.transformations.sfgenerator
</groupId>
<artifactId>
sf-generator
</artifactId>
<version>
1.0.0-SNAPSHOT
</version>
<name>
CHOReVOLUTION SF-generator - SF-generator Bundle
</name>
<packaging>
jar
</packaging>
<properties>
<java.version>
1.8
</java.version>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
</properties>
<organization>
<name>
The CHOReVOLUTION project
</name>
<url>
http://www.chorevolution.eu
</url>
</organization>
<dependencies>
<dependency>
<groupId>
commons-io
</groupId>
<artifactId>
commons-io
</artifactId>
<version>
2.4
</version>
</dependency>
<dependency>
<groupId>
org.slf4j
</groupId>
<artifactId>
slf4j-api
</artifactId>
<version>
1.7.12
</version>
</dependency>
<dependency>
<groupId>
org.slf4j
</groupId>
<artifactId>
slf4j-log4j12
</artifactId>
<version>
1.7.12
</version>
</dependency>
<dependency>
<groupId>
org.eclipse.emf
</groupId>
<artifactId>
org.eclipse.emf.common
</artifactId>
<version>
2.11.0-v20150805-0538
</version>
</dependency>
<dependency>
<groupId>
org.eclipse.emf
</groupId>
<artifactId>
org.eclipse.emf.ecore
</artifactId>
<version>
2.11.1-v20150805-0538
</version>
</dependency>
<dependency>
<groupId>
org.eclipse.emf
</groupId>
<artifactId>
org.eclipse.emf.ecore.xmi
</artifactId>
<version>
2.11.1-v20150805-0538
</version>
</dependency>
<dependency>
<groupId>
eu.chorevolution.modelingnotations
</groupId>
<artifactId>
eu.chorevolution.modelingnotations.security
</artifactId>
<version>
1.0.0-SNAPSHOT
</version>
</dependency>
<dependency>
<groupId>
org.ow2.authzforce
</groupId>
<artifactId>
authzforce-ce-xacml-model
</artifactId>
<version>
3.4.0
</version>
</dependency>
</dependencies>
<licenses>
<license>
<name>
GPL v3.0
</name>
<url>
http://www.gnu.org/licenses/gpl-3.0.en.html
</url>
<distribution>
repo
</distribution>
</license>
</licenses>
<repositories>
<repository>
<id>
ow2-snapshots
</id>
<url>
http://repository.ow2.org/nexus/content/repositories/snapshots/
</url>
<releases>
<enabled>
false
</enabled>
</releases>
<snapshots>
<enabled>
true
</enabled>
</snapshots>
</repository>
<repository>
<id>
ow2-releases
</id>
<url>
http://repository.ow2.org/nexus/content/repositories/releases/
</url>
<releases>
<enabled>
false
</enabled>
</releases>
<snapshots>
<enabled>
true
</enabled>
</snapshots>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>
commons-io
</groupId>
<artifactId>
commons-io
</artifactId>
<version>
2.4
</version>
</dependency>
<dependency>
<groupId>
org.slf4j
</groupId>
<artifactId>
slf4j-api
</artifactId>
<version>
1.7.12
</version>
</dependency>
<dependency>
<groupId>
org.slf4j
</groupId>
<artifactId>
slf4j-log4j12
</artifactId>
<version>
1.7.12
</version>
</dependency>
<dependency>
<groupId>
org.eclipse.emf
</groupId>
<artifactId>
org.eclipse.emf.common
</artifactId>
<version>
2.11.0-v20150805-0538
</version>
</dependency>
<dependency>
<groupId>
org.eclipse.emf
</groupId>
<artifactId>
org.eclipse.emf.ecore
</artifactId>
<version>
2.11.1-v20150805-0538
</version>
</dependency>
<dependency>
<groupId>
org.eclipse.emf
</groupId>
<artifactId>
org.eclipse.emf.ecore.xmi
</artifactId>
<version>
2.11.1-v20150805-0538
</version>
</dependency>
<dependency>
<groupId>
eu.chorevolution.modelingnotations
</groupId>
<artifactId>
eu.chorevolution.modelingnotations.security
</artifactId>
<version>
1.0.0-SNAPSHOT
</version>
</dependency>
<dependency>
<groupId>
org.ow2.authzforce
</groupId>
<artifactId>
authzforce-ce-xacml-model
</artifactId>
<version>
3.4.0
</version>
</dependency>
</dependencies>
<repositories>
<repository>
<id>
ow2-snapshots
</id>
<url>
http://repository.ow2.org/nexus/content/repositories/snapshots/
</url>
<releases>
<enabled>
false
</enabled>
</releases>
<snapshots>
<enabled>
true
</enabled>
</snapshots>
</repository>
<repository>
<id>
ow2-releases
</id>
<url>
http://repository.ow2.org/nexus/content/repositories/releases/
</url>
<releases>
<enabled>
false
</enabled>
</releases>
<snapshots>
<enabled>
true
</enabled>
</snapshots>
</repository>
</repositories>
<build>
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-compiler-plugin
</artifactId>
<version>
3.3
</version>
<configuration>
<source>
${java.version}
</source>
<target>
${java.version}
</target>
<useIncrementalCompilation>
false
</useIncrementalCompilation>
<showWarnings>
true
</showWarnings>
<showDeprecation>
true
</showDeprecation>
<compilerArgument>
-Xlint:unchecked
</compilerArgument>
</configuration>
</plugin>
<!-- Disable default license check and enforce specific -->
<plugin>
<groupId>
com.mycila.maven-license-plugin
</groupId>
<artifactId>
maven-license-plugin
</artifactId>
<inherited>
true
</inherited>
<configuration>
<skip>
true
</skip>
</configuration>
</plugin>
<!-- <plugin> <groupId>org.apache.rat</groupId> <artifactId>apache-rat-plugin</artifactId>
<version>0.11</version> <configuration> <excludes> <exclude>**/rat.txt</exclude>
<exclude>**/build-copy-javadoc-files.xml</exclude> <exclude>**/*.log</exclude>
<exclude>.git/**</exclude> <exclude>**/.*</exclude> </excludes> </configuration>
<executions> <execution> <id>rat-check</id> <phase>verify</phase> <goals>
<goal>check</goal> </goals> </execution> </executions> </plugin> -->
<build>
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-compiler-plugin
</artifactId>
<version>
3.3
</version>
<configuration>
<source>
${java.version}
</source>
<target>
${java.version}
</target>
<useIncrementalCompilation>
false
</useIncrementalCompilation>
<showWarnings>
true
</showWarnings>
<showDeprecation>
true
</showDeprecation>
<compilerArgument>
-Xlint:unchecked
</compilerArgument>
</configuration>
</plugin>
<!-- Disable default license check and enforce specific -->
<plugin>
<groupId>
com.mycila.maven-license-plugin
</groupId>
<artifactId>
maven-license-plugin
</artifactId>
<inherited>
true
</inherited>
<configuration>
<skip>
true
</skip>
</configuration>
</plugin>
<!-- <plugin> <groupId>org.apache.rat</groupId> <artifactId>apache-rat-plugin</artifactId>
<version>0.11</version> <configuration> <excludes> <exclude>**/rat.txt</exclude>
<exclude>**/build-copy-javadoc-files.xml</exclude> <exclude>**/*.log</exclude>
<exclude>.git/**</exclude> <exclude>**/.*</exclude> </excludes> </configuration>
<executions> <execution> <id>rat-check</id> <phase>verify</phase> <goals>
<goal>check</goal> </goals> </execution> </executions> </plugin> -->
<!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId>
<version>2.17</version> <configuration> <configLocation>${basedir}/src/main/resources/checkstyle.xml</configLocation>
<targetJdk>${targetJdk}</targetJdk> </configuration> <executions> <execution>
<id>checkstyle-check</id> <phase>verify</phase> <goals> <goal>check</goal>
</goals> </execution> </executions> </plugin> -->
<!-- Put NOTICE and LICENSE files in all artifacts and javadocs -->
<!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId>
<version>2.7</version> <executions> <execution> <id>copy-artifact-legal-files</id>
<phase>process-resources</phase> <goals> <goal>copy-resources</goal> </goals>
<configuration> <outputDirectory>${project.build.directory}/classes/META-INF</outputDirectory>
<resources> <resource> <directory>${basedir}</directory> <includes> <include>LICENSE</include>
<include>NOTICE</include> </includes> </resource> </resources> </configuration>
</execution> <execution> <id>copy-javadoc-legal-files</id> <phase>process-resources</phase>
<goals> <goal>copy-resources</goal> </goals> <configuration> <outputDirectory>${project.build.directory}/apidocs/META-INF</outputDirectory>
<resources> <resource> <directory>${basedir}</directory> <includes> <include>LICENSE</include>
<include>NOTICE</include> </includes> </resource> </resources> </configuration>
</execution> </executions> </plugin> -->
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-assembly-plugin
</artifactId>
<inherited>
true
</inherited>
<configuration>
<appendAssemblyId>
true
</appendAssemblyId>
<descriptors>
<descriptor>
src/assemble/connector.xml
</descriptor>
</descriptors>
<archive>
<index>
true
</index>
<manifestEntries>
<ConnectorBundle-FrameworkVersion>
${project.version}
</ConnectorBundle-FrameworkVersion>
<ConnectorBundle-Name>
${project.artifactId}
</ConnectorBundle-Name>
<ConnectorBundle-Version>
${project.version}
</ConnectorBundle-Version>
</manifestEntries>
</archive>
</configuration>
<executions>
<execution>
<id>
make-assembly
</id>
<phase>
package
</phase>
<goals>
<goal>
single
</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId>
<version>2.17</version> <configuration> <configLocation>${basedir}/src/main/resources/checkstyle.xml</configLocation>
<targetJdk>${targetJdk}</targetJdk> </configuration> <executions> <execution>
<id>checkstyle-check</id> <phase>verify</phase> <goals> <goal>check</goal>
</goals> </execution> </executions> </plugin> -->
<!-- Put NOTICE and LICENSE files in all artifacts and javadocs -->
<!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId>
<version>2.7</version> <executions> <execution> <id>copy-artifact-legal-files</id>
<phase>process-resources</phase> <goals> <goal>copy-resources</goal> </goals>
<configuration> <outputDirectory>${project.build.directory}/classes/META-INF</outputDirectory>
<resources> <resource> <directory>${basedir}</directory> <includes> <include>LICENSE</include>
<include>NOTICE</include> </includes> </resource> </resources> </configuration>
</execution> <execution> <id>copy-javadoc-legal-files</id> <phase>process-resources</phase>
<goals> <goal>copy-resources</goal> </goals> <configuration> <outputDirectory>${project.build.directory}/apidocs/META-INF</outputDirectory>
<resources> <resource> <directory>${basedir}</directory> <includes> <include>LICENSE</include>
<include>NOTICE</include> </includes> </resource> </resources> </configuration>
</execution> </executions> </plugin> -->
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-assembly-plugin
</artifactId>
<inherited>
true
</inherited>
<configuration>
<appendAssemblyId>
true
</appendAssemblyId>
<descriptors>
<descriptor>
src/assemble/connector.xml
</descriptor>
</descriptors>
<archive>
<index>
true
</index>
<manifestEntries>
<ConnectorBundle-FrameworkVersion>
${project.version}
</ConnectorBundle-FrameworkVersion>
<ConnectorBundle-Name>
${project.artifactId}
</ConnectorBundle-Name>
<ConnectorBundle-Version>
${project.version}
</ConnectorBundle-Version>
</manifestEntries>
</archive>
</configuration>
<executions>
<execution>
<id>
make-assembly
</id>
<phase>
package
</phase>
<goals>
<goal>
single
</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</plugins>
</build>
</project>
\ No newline at end of file
Security-filter-impl/pom.xml
View file @
728d9958
<?xml version="1.0" encoding="UTF-8"?>
<!--
Security Filter Servlet Proxy
Copyright (C) 2015 The CHOReVOLUTION project
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<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"
>
<modelVersion>
4.0.0
</modelVersion>
<organization>
<name>
The CHOReVOLUTION project
</name>
<url>
http://www.chorevolution.eu
</url>
</organization>
<licenses>
<license>
<name>
GPL v3.0
</name>
<url>
http://www.gnu.org/licenses/gpl-3.0.en.html
</url>
<distribution>
repo
</distribution>
</license>
</licenses>
<scm>
<connection>
scm:git:ssh://gitolite@tuleap.ow2.org/chorevolution/security-filter.git
</connection>
<developerConnection>
scm:git:ssh://gitolite@tuleap.ow2.org/chorevolution/security-filter.git
</developerConnection>
<url>
https://tuleap.ow2.org/plugins/git/chorevolution/security-filter
</url>
</scm>
<issueManagement>
<system>
jira
</system>
<url>
https://jira.ow2.org/browse/CRV
</url>
</issueManagement>
<groupId>
eu.chorevolution
</groupId>
<artifactId>
SecurityfilterServletProxy
</artifactId>
<packaging>
war
</packaging>
<version>
0.0.1-SNAPSHOT
</version>
<name>
SecurityfilterServletProxy Maven Webapp
</name>
<url>
http://maven.apache.org
</url>
<distributionManagement>
<snapshotRepository>
<id>
ow2-nexus-snapshots
</id>
<name>
OW2 Snapshots Repository
</name>
<url>
http://repository.ow2.org/nexus/content/repositories/snapshots/
</url>
</snapshotRepository>
</distributionManagement>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<!-- works with v4.1 and forward; see .travis.yml -->
<httpclient.version>
4.5
</httpclient.version>
<!-- the last version to provide LocalTestServer.java -->
<httpclient.test.version>
4.3.5
</httpclient.test.version>
</properties>
<dependencies>
<dependency>
<groupId>
javax.servlet
</groupId>
<artifactId>
javax.servlet-api
</artifactId>
<version>
3.1.0
</version>
</dependency>
<dependency>
<groupId>
javax.servlet
</groupId>
<artifactId>
servlet-api
</artifactId>
<version>
2.5
</version>
<scope>
provided
</scope>
</dependency>
<dependency>
<groupId>
org.apache.httpcomponents
</groupId>
<artifactId>
httpclient
</artifactId>
<version>
${httpclient.version}
</version>
</dependency>
<dependency>
<groupId>
commons-io
</groupId>
<artifactId>
commons-io
</artifactId>
<version>
2.4
</version>
</dependency>
<dependency>
<groupId>
junit
</groupId>
<artifactId>
junit
</artifactId>
<version>
4.12
</version>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
org.apache.httpcomponents
</groupId>
<artifactId>
httpclient
</artifactId>
<version>
${httpclient.test.version}
</version>
<classifier>
tests
</classifier>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
org.apache.logging.log4j
</groupId>
<artifactId>
log4j-api
</artifactId>
<version>
2.4.1
</version>
</dependency>
<dependency>
<groupId>
org.apache.logging.log4j
</groupId>
<artifactId>
log4j-core
</artifactId>
<version>
2.4.1
</version>
</dependency>
<dependency>
<groupId>
org.apache.ws.security
</groupId>
<artifactId>
wss4j
</artifactId>
<version>
1.6.19
</version>
</dependency>
<dependency>
<groupId>
eu.chorevolution.idm
</groupId>
<artifactId>
connid-security-filter
</artifactId>
<version>
0.1-SNAPSHOT
</version>
</dependency>
<dependency>
<groupId>
com.sun.jersey
</groupId>
<artifactId>
jersey-server
</artifactId>
<version>
1.9
</version>
</dependency>
<dependency>
<groupId>
org.apache.cxf
</groupId>
<artifactId>
cxf-rt-ws-security
</artifactId>
<version>
3.1.4
</version>
</dependency>
<dependency>
<groupId>
org.apache.cxf
</groupId>
<artifactId>
cxf-rt-frontend-jaxws
</artifactId>
<version>
3.1.4
</version>
</dependency>
<dependency>
<groupId>
org.apache.cxf.services.sts
</groupId>
<artifactId>
cxf-services-sts-core
</artifactId>
<version>
3.1.4
</version>
</dependency>
<dependency>
<groupId>
ch.qos.logback
</groupId>
<artifactId>
logback-classic
</artifactId>
<version>
1.1.3
</version>
</dependency>
<!-- <dependency> <groupId>eu.chorevolution</groupId> <artifactId>SecurityTokenService</artifactId>
<version>0.0.1-SNAPSHOT</version> </dependency> -->
</dependencies>
<build>
<finalName>
SecurityfilterServletProxy
</finalName>
<plugins>
<plugin>
<!-- Plugin Maven pour creer archive WAR -->
<artifactId>
maven-war-plugin
</artifactId>
<version>
2.6
</version>
</plugin>
<plugin>
<!-- Plugin pour compilation code Java -->
<artifactId>
maven-compiler-plugin
</artifactId>
<configuration>
<!-- Java version for compiling the source code -->
<source>
1.8
</source>
<target>
1.8
</target>
</configuration>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>
sonatype
</id>
<url>
https://oss.sonatype.org/content/repositories/snapshots
</url>
<releases>
<enabled>
false
</enabled>
</releases>
<snapshots>
<enabled>
true
</enabled>
</snapshots>
</repository>
<repository>
<id>
ow2-snapshots
</id>
<url>
http://repository.ow2.org/nexus/content/repositories/snapshots/
</url>
<releases>
<enabled>
false
</enabled>
</releases>
<snapshots>
<enabled>
true
</enabled>
</snapshots>
</repository>
<repository>
<id>
ow2-releases
</id>
<url>
http://repository.ow2.org/nexus/content/repositories/releases/
</url>
<releases>
<enabled>
false
</enabled>
</releases>
<snapshots>
<enabled>
true
</enabled>
</snapshots>
</repository>
</repositories>
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<organization>
<name>
The CHOReVOLUTION project
</name>
<url>
http://www.chorevolution.eu
</url>
</organization>
<licenses>
<license>
<name>
GPL v3.0
</name>
<url>
http://www.gnu.org/licenses/gpl-3.0.en.html
</url>
<distribution>
repo
</distribution>
</license>
</licenses>
<scm>
<connection>
scm:git:ssh://gitolite@tuleap.ow2.org/chorevolution/security-filter.git
</connection>
<developerConnection>
scm:git:ssh://gitolite@tuleap.ow2.org/chorevolution/security-filter.git
</developerConnection>
<url>
https://tuleap.ow2.org/plugins/git/chorevolution/security-filter
</url>
</scm>
<issueManagement>
<system>
jira
</system>
<url>
https://jira.ow2.org/browse/CRV
</url>
</issueManagement>
<groupId>
eu.chorevolution.securityfilter
</groupId>
<artifactId>
SecurityfilterServletProxy
</artifactId>
<packaging>
war
</packaging>
<version>
0.0.1-SNAPSHOT
</version>
<name>
SecurityfilterServletProxy Maven Webapp
</name>
<url>
http://maven.apache.org
</url>
<distributionManagement>
<snapshotRepository>
<id>
ow2-nexus-snapshots
</id>
<name>
OW2 Snapshots Repository
</name>
<url>
http://repository.ow2.org/nexus/content/repositories/snapshots/
</url>
</snapshotRepository>
</distributionManagement>
<properties>