Added new `Catalogue-Manager` and `Catalogue-Moderator` roles to the enum (#23623)
This commit is contained in:
parent
bbcd35e14f
commit
fea71c720c
|
@ -2,6 +2,9 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
|||
|
||||
# Changelog for "oidc-library"
|
||||
|
||||
## [v1.3.1-SNAPSHOT]
|
||||
Added `Catalogue-Manager` and `Catalogue-Moderator` roles to the enum (#23623)
|
||||
|
||||
## [v1.3.0]
|
||||
Added method to retrieve UMA token by using `clientId` and `clientSecret` in a specific `audience` (aka context) that can now be provided in both encoded and not encoded form (starts with "/" check is performed).
|
||||
|
||||
|
|
4
pom.xml
4
pom.xml
|
@ -13,14 +13,14 @@
|
|||
|
||||
<groupId>org.gcube.common</groupId>
|
||||
<artifactId>oidc-library</artifactId>
|
||||
<version>1.3.0</version>
|
||||
<version>1.3.1-SNAPSHOT</version>
|
||||
|
||||
<dependencyManagement>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.gcube.distribution</groupId>
|
||||
<artifactId>maven-portal-bom</artifactId>
|
||||
<version>3.6.3</version>
|
||||
<version>3.6.3-SNAPSHOT</version>
|
||||
<type>pom</type>
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
|
|
|
@ -12,6 +12,8 @@ public class D4ScienceMappings {
|
|||
ACCOUNTING_MANAGER("Accounting-Manager"),
|
||||
CATALOGUE_ADMIN("Catalogue-Admin"),
|
||||
CATALOGUE_EDITOR("Catalogue-Editor"),
|
||||
CATALOGUE_MANAGER("Catalogue-Manager"),
|
||||
CATALOGUE_MODERATOR("Catalogue-Moderator"),
|
||||
DATA_EDITOR("Data-Editor"),
|
||||
DATA_MANAGER("Data-Manager"),
|
||||
DATAMINER_MANAGER("DataMiner-Manager"),
|
||||
|
@ -49,23 +51,4 @@ public class D4ScienceMappings {
|
|||
|
||||
}
|
||||
|
||||
public enum Scope {
|
||||
|
||||
BELONGS("belongs");
|
||||
// TODO will be defined later
|
||||
// LIST("list"),
|
||||
// READ("read"),
|
||||
// WRITE("write"),
|
||||
// EXECUTE("execute");
|
||||
|
||||
private String str;
|
||||
|
||||
Scope(String str) {
|
||||
this.str = str;
|
||||
}
|
||||
|
||||
public String asString() {
|
||||
return str;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue