Fixing code

This commit is contained in:
Luca Frosini 2024-05-21 17:22:48 +02:00
parent a446c93589
commit 5d877b4a2d
3 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@
<dependency>
<groupId>org.gcube.distribution</groupId>
<artifactId>gcube-bom</artifactId>
<version>3.0.0-SNAPSHOT</version>
<version>3.0.1-SNAPSHOT</version>
<type>pom</type>
<scope>import</scope>
</dependency>

View File

@ -8,7 +8,7 @@ import org.gcube.common.security.providers.SecretManagerProvider;
public class ContextUtility {
public static String getCurrentContextFullName() {
String context = SecretManagerProvider.instance.get().getContext();
String context = SecretManagerProvider.get().getContext();
return context;
}

View File

@ -13,7 +13,7 @@ public class GXHTTPUtility {
public static GXHTTPStringRequest getGXHTTPStringRequest(String address) {
GXHTTPStringRequest gxHTTPStringRequest = GXHTTPStringRequest.newRequest(address);
Secret secret = SecretManagerProvider.instance.get();
Secret secret = SecretManagerProvider.get();
Map<String, String> authorizationHeaders = secret.getHTTPAuthorizationHeaders();
for(String key : authorizationHeaders.keySet()) {
gxHTTPStringRequest.header(key, authorizationHeaders.get(key));