removed common-scope dependency

This commit is contained in:
Lucio Lelii 2022-06-06 15:37:32 +02:00
parent d3e0062060
commit 2a0f1d2582
3 changed files with 45 additions and 51 deletions

View File

@ -4,6 +4,11 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [v3.0.0-SNAPSHOT] - [2022-06-06]
- removed common-scope from the dependencies
## [v2.5.0] - [2022-04-20] ## [v2.5.0] - [2022-04-20]
- Deprecated AccessTokenProvider, AuthorizationProvider and SecurityTokenProvider [#22871] - Deprecated AccessTokenProvider, AuthorizationProvider and SecurityTokenProvider [#22871]

77
pom.xml
View File

@ -1,41 +1,42 @@
<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>org.gcube.common</groupId>
<artifactId>common-authorization</artifactId>
<version>3.0.0-SNAPSHOT</version>
<name>authorization service common library</name>
<parent> <project xmlns="http://maven.apache.org/POM/4.0.0"
<artifactId>maven-parent</artifactId> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<groupId>org.gcube.tools</groupId> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<version>1.1.0</version> <modelVersion>4.0.0</modelVersion>
</parent> <groupId>org.gcube.common</groupId>
<artifactId>common-authorization</artifactId>
<scm> <version>3.0.0-SNAPSHOT</version>
<connection>scm:git:https://code-repo.d4science.org/gCubeSystem/common-authorization.git</connection> <name>authorization service common library</name>
<developerConnection>scm:git:https://code-repo.d4science.org/gCubeSystem/common-authorization.git</developerConnection>
<url>https://code-repo.d4science.org/gCubeSystem/common-authorization</url>
</scm>
<dependencies> <parent>
<dependency> <artifactId>maven-parent</artifactId>
<groupId>org.gcube.core</groupId> <groupId>org.gcube.tools</groupId>
<artifactId>common-scope</artifactId> <version>1.1.0</version>
<version>[1.0.0-SNAPSHOT, 2.0.0-SNAPSHOT)</version> </parent>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.5</version>
</dependency>
</dependencies>
</project> <scm>
<connection>scm:git:https://code-repo.d4science.org/gCubeSystem/common-authorization.git</connection>
<developerConnection>scm:git:https://code-repo.d4science.org/gCubeSystem/common-authorization.git</developerConnection>
<url>https://code-repo.d4science.org/gCubeSystem/common-authorization</url>
</scm>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.gcube.core</groupId>
<artifactId>common-configuration-scanner</artifactId>
<version>[1.0.0-SNAPSHOT,2.0.0-SNAPSHOT)</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.5</version>
</dependency>
</dependencies>
</project>

View File

@ -18,8 +18,6 @@ import org.gcube.common.authorization.library.provider.ContainerInfo;
import org.gcube.common.authorization.library.provider.ExternalServiceInfo; import org.gcube.common.authorization.library.provider.ExternalServiceInfo;
import org.gcube.common.authorization.library.provider.ServiceInfo; import org.gcube.common.authorization.library.provider.ServiceInfo;
import org.gcube.common.authorization.library.provider.UserInfo; import org.gcube.common.authorization.library.provider.UserInfo;
import org.gcube.common.scope.api.ServiceMap;
import org.gcube.common.scope.impl.DefaultServiceMap;
@XmlRootElement @XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD) @XmlAccessorType(XmlAccessType.FIELD)
@ -35,9 +33,6 @@ public class AuthorizationEntry {
private String context; private String context;
@XmlElementRef(type = DefaultServiceMap.class)
private ServiceMap map;
@XmlElementRefs({ @XmlElementRefs({
@XmlElementRef(type = Service2ServicePolicy.class), @XmlElementRef(type = Service2ServicePolicy.class),
@XmlElementRef(type = User2ServicePolicy.class), @XmlElementRef(type = User2ServicePolicy.class),
@ -68,18 +63,11 @@ public class AuthorizationEntry {
return context; return context;
} }
public ServiceMap getMap() {
return map;
}
public String getQualifier() { public String getQualifier() {
return qualifier; return qualifier;
} }
public void setMap(ServiceMap map) {
this.map = map;
}
public List<Policy> getPolicies() { public List<Policy> getPolicies() {
return policies; return policies;
} }
@ -128,7 +116,7 @@ public class AuthorizationEntry {
@Override @Override
public String toString() { public String toString() {
return "AuthorizationEntry [clientInfo=" + clientInfo + ", context=" return "AuthorizationEntry [clientInfo=" + clientInfo + ", context="
+ context + ", map=" + map + ", qualifier=" + qualifier + context + ", qualifier=" + qualifier
+ ", policies=" + policies + "]"; + ", policies=" + policies + "]";
} }