diff --git a/src/main/java/org/gcube/gcat/utils/Constants.java b/src/main/java/org/gcube/gcat/utils/Constants.java index 0af280b..0d16eac 100644 --- a/src/main/java/org/gcube/gcat/utils/Constants.java +++ b/src/main/java/org/gcube/gcat/utils/Constants.java @@ -57,7 +57,7 @@ public class Constants { private static TokenResponse getJWTAccessToken() throws Exception { String contextToAuthorise = SecretManagerProvider.instance.get().getContext(); Entry entry = getClientIdAndClientSecret(contextToAuthorise); - TokenResponse tr = KeycloakClientFactory.newInstance().queryUMAToken(entry.getKey(), entry.getValue(), contextToAuthorise, null); + TokenResponse tr = KeycloakClientFactory.newInstance().queryUMAToken(contextToAuthorise, entry.getKey(), entry.getValue(), null, null); return tr; }