Fixing code
This commit is contained in:
parent
a446c93589
commit
5d877b4a2d
2
pom.xml
2
pom.xml
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue