Removed usage of authorization-utils

This commit is contained in:
Luca Frosini 2023-02-16 15:57:03 +01:00
parent 15612ec339
commit bb14a1d871
2 changed files with 8 additions and 7 deletions

11
pom.xml
View File

@ -46,11 +46,6 @@
<groupId>org.slf4j</groupId> <groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId> <artifactId>slf4j-api</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.gcube.common</groupId>
<artifactId>authorization-utils</artifactId>
<version>[2.0.0, 3.0.0-SNAPSHOT)</version>
</dependency>
<!-- Test Dependencies --> <!-- Test Dependencies -->
<dependency> <dependency>
<groupId>junit</groupId> <groupId>junit</groupId>
@ -63,5 +58,11 @@
<artifactId>logback-classic</artifactId> <artifactId>logback-classic</artifactId>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency>
<groupId>org.gcube.common</groupId>
<artifactId>authorization-utils</artifactId>
<version>[2.1.0-SNAPSHOT, 3.0.0-SNAPSHOT)</version>
<scope>test</scope>
</dependency>
</dependencies> </dependencies>
</project> </project>

View File

@ -1,6 +1,6 @@
package org.gcube.informationsystem.resourceregistry.api.rest; package org.gcube.informationsystem.resourceregistry.api.rest;
import org.gcube.common.authorization.utils.manager.SecretManagerProvider; import org.gcube.common.scope.api.ScopeProvider;
/** /**
* @author Luca Frosini (ISTI - CNR) * @author Luca Frosini (ISTI - CNR)
@ -12,7 +12,7 @@ public abstract class ServiceInstance {
public static final String BASE_URL = "https://url.d4science.org"; public static final String BASE_URL = "https://url.d4science.org";
public static String getCurrentContextFullName() { public static String getCurrentContextFullName() {
String context = SecretManagerProvider.instance.get().getContext(); String context = ScopeProvider.instance.get();
return context; return context;
} }