Compare commits
7 Commits
Author | SHA1 | Date |
---|---|---|
Luca Frosini | c91630d921 | |
Luca Frosini | c0118a16b4 | |
Luca Frosini | 5cc4267ec2 | |
Lucio Lelii | e68d49fc64 | |
Lucio Lelii | c0e1360940 | |
Luca Frosini | 4993a52c61 | |
Luca Frosini | bb505b905c |
|
@ -4,6 +4,15 @@
|
||||||
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).
|
||||||
|
|
||||||
|
## [v2.5.1]
|
||||||
|
|
||||||
|
- Added library to support Java 11 JDK
|
||||||
|
|
||||||
|
## [v2.5.0] - [2022-04-20]
|
||||||
|
|
||||||
|
- Deprecated AccessTokenProvider, AuthorizationProvider and SecurityTokenProvider [#22871]
|
||||||
|
- Added roles to ExternalService Client info
|
||||||
|
|
||||||
## [v2.4.0] - [2021-05-21]
|
## [v2.4.0] - [2021-05-21]
|
||||||
|
|
||||||
JWTUmaTokenProvider changed to AccessTokenProvider
|
JWTUmaTokenProvider changed to AccessTokenProvider
|
||||||
|
|
38
pom.xml
38
pom.xml
|
@ -1,28 +1,38 @@
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
<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">
|
||||||
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>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>org.gcube.common</groupId>
|
|
||||||
<artifactId>common-authorization</artifactId>
|
|
||||||
<version>2.4.0</version>
|
|
||||||
<name>authorization service common library</name>
|
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
<artifactId>maven-parent</artifactId>
|
<artifactId>maven-parent</artifactId>
|
||||||
<groupId>org.gcube.tools</groupId>
|
<groupId>org.gcube.tools</groupId>
|
||||||
<version>1.1.0</version>
|
<version>1.1.0</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
<groupId>org.gcube.common</groupId>
|
||||||
|
<artifactId>common-authorization</artifactId>
|
||||||
|
<version>2.5.1</version>
|
||||||
|
<name>authorization service common library</name>
|
||||||
|
|
||||||
<scm>
|
<scm>
|
||||||
<connection>scm:git:https://code-repo.d4science.org/gCubeSystem/common-authorization.git</connection>
|
<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>
|
<developerConnection>scm:git:https://code-repo.d4science.org/gCubeSystem/common-authorization.git</developerConnection>
|
||||||
<url>https://code-repo.d4science.org/gCubeSystem/common-authorization</url>
|
<url>https://code-repo.d4science.org/gCubeSystem/common-authorization</url>
|
||||||
</scm>
|
</scm>
|
||||||
|
|
||||||
|
<dependencyManagement>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.gcube.distribution</groupId>
|
||||||
|
<artifactId>gcube-bom</artifactId>
|
||||||
|
<version>2.1.0</version>
|
||||||
|
<type>pom</type>
|
||||||
|
<scope>import</scope>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</dependencyManagement>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.gcube.core</groupId>
|
<groupId>org.gcube.core</groupId>
|
||||||
<artifactId>common-scope</artifactId>
|
<artifactId>common-scope</artifactId>
|
||||||
<version>[1.0.0-SNAPSHOT, 2.0.0-SNAPSHOT)</version>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>junit</groupId>
|
<groupId>junit</groupId>
|
||||||
|
@ -34,8 +44,16 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.slf4j</groupId>
|
<groupId>org.slf4j</groupId>
|
||||||
<artifactId>slf4j-api</artifactId>
|
<artifactId>slf4j-api</artifactId>
|
||||||
<version>1.7.5</version>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<!-- Added to support Java 11 JDK -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>javax.xml.ws</groupId>
|
||||||
|
<artifactId>jaxws-api</artifactId>
|
||||||
|
<scope>provided</scope>
|
||||||
|
</dependency>
|
||||||
|
<!-- END Added to support Java 11 JDK -->
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
package org.gcube.common.authorization.library.provider;
|
package org.gcube.common.authorization.library.provider;
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
public class AccessTokenProvider {
|
public class AccessTokenProvider {
|
||||||
|
|
||||||
public static AccessTokenProvider instance = new AccessTokenProvider();
|
public static AccessTokenProvider instance = new AccessTokenProvider();
|
||||||
|
|
|
@ -2,6 +2,7 @@ package org.gcube.common.authorization.library.provider;
|
||||||
|
|
||||||
import org.gcube.common.authorization.library.utils.Caller;
|
import org.gcube.common.authorization.library.utils.Caller;
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
public class AuthorizationProvider {
|
public class AuthorizationProvider {
|
||||||
|
|
||||||
public static AuthorizationProvider instance = new AuthorizationProvider();
|
public static AuthorizationProvider instance = new AuthorizationProvider();
|
||||||
|
|
|
@ -22,10 +22,20 @@ public class ExternalServiceInfo extends ClientInfo{
|
||||||
|
|
||||||
private String generatedBy;
|
private String generatedBy;
|
||||||
|
|
||||||
|
private List<String> roles;
|
||||||
|
|
||||||
public ExternalServiceInfo(String id, String generatedBy) {
|
public ExternalServiceInfo(String id, String generatedBy) {
|
||||||
super();
|
super();
|
||||||
this.id = id;
|
this.id = id;
|
||||||
this.generatedBy = generatedBy;
|
this.generatedBy = generatedBy;
|
||||||
|
this.roles = Collections.emptyList();
|
||||||
|
}
|
||||||
|
|
||||||
|
public ExternalServiceInfo(String id, String generatedBy, List<String> roles) {
|
||||||
|
super();
|
||||||
|
this.id = id;
|
||||||
|
this.generatedBy = generatedBy;
|
||||||
|
this.roles = roles;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected ExternalServiceInfo() {
|
protected ExternalServiceInfo() {
|
||||||
|
@ -43,7 +53,7 @@ public class ExternalServiceInfo extends ClientInfo{
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<String> getRoles() {
|
public List<String> getRoles() {
|
||||||
return Collections.emptyList();
|
return roles;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package org.gcube.common.authorization.library.provider;
|
package org.gcube.common.authorization.library.provider;
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
public class SecurityTokenProvider {
|
public class SecurityTokenProvider {
|
||||||
|
|
||||||
public static SecurityTokenProvider instance = new SecurityTokenProvider();
|
public static SecurityTokenProvider instance = new SecurityTokenProvider();
|
||||||
|
|
Loading…
Reference in New Issue