Merge branch 'feature/22955' of
https://code-repo.d4science.org/gCubeSystem/common-smartgears.git into feature/22955 Conflicts: src/main/java/org/gcube/smartgears/handlers/application/request/RequestValidator.java
This commit is contained in:
commit
36e56d1e7d
|
@ -148,8 +148,8 @@ public class RequestValidator extends RequestHandler {
|
|||
}catch (KeycloakClientException e) {
|
||||
RequestError.internal_server_error.fire("error contacting keycloak client", e);
|
||||
}
|
||||
} else if (token!=null)
|
||||
secret = new GCubeSecret(token);
|
||||
} else if (token!=null && !token.isEmpty())
|
||||
secret = new GCubeSecret(token);
|
||||
return secret;
|
||||
}
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ public class DefaultAuthorizationProvider implements AuthorizationProvider {
|
|||
try {
|
||||
ContextBean scope = new ContextBean(context.replaceAll("%2F", "/"));
|
||||
contexts.add(scope.toString());
|
||||
LOG.info("found context {}",context);
|
||||
LOG.debug("found context {}",context);
|
||||
}catch (IllegalArgumentException e) {
|
||||
LOG.warn("invalid context found in token: {}", context);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue