Browse Source

exception removed

master r5.4.0
lucio.lelii 12 months ago
parent
commit
cb135d554a
  1. 8
      src/main/java/org/gcube/common/calls/interceptors/AuthorizationInterceptor.java

8
src/main/java/org/gcube/common/calls/interceptors/AuthorizationInterceptor.java

@ -22,12 +22,8 @@ public class AuthorizationInterceptor implements Interceptor {
String accessToken = AccessTokenProvider.instance.get();
if (accessToken!=null) {
try {
request.addHeader(uma_token_header, "Bearer "+accessToken);
logger.trace("uma token set");
}catch (Exception e) {
logger.error("error parsing uma token",e);
}
request.addHeader(uma_token_header, "Bearer "+accessToken);
logger.trace("uma token set");
} else logger.warn("uma token is not set");
if (token==null)

Loading…
Cancel
Save