diff --git a/src/main/java/org/gcube/portlets/user/wswidget/StorageHubServiceUtil.java b/src/main/java/org/gcube/portlets/user/wswidget/StorageHubServiceUtil.java index 821062d..935d073 100644 --- a/src/main/java/org/gcube/portlets/user/wswidget/StorageHubServiceUtil.java +++ b/src/main/java/org/gcube/portlets/user/wswidget/StorageHubServiceUtil.java @@ -18,10 +18,12 @@ import org.gcube.common.storagehub.model.items.Item; import org.gcube.oidc.rest.JWTToken; import org.gcube.portal.oidc.lr62.InvalidTokenException; import org.gcube.portal.oidc.lr62.JWTTokenUtil; +import org.gcube.portal.oidc.lr62.MissingRefreshTokenException; import org.gcube.portal.oidc.lr62.MissingTokenException; import org.gcube.portal.oidc.lr62.NotAuthorizedException; import org.gcube.portal.oidc.lr62.OIDCUmaUtil; import org.gcube.portal.oidc.lr62.RefreshException; +import org.gcube.portal.oidc.lr62.RefreshTokenExpiredException; import org.gcube.portal.oidc.lr62.UMAException; import org.gcube.portlets.user.wswidget.shared.AuthorizedUser; import org.gcube.portlets.user.wswidget.shared.WSItem; @@ -176,7 +178,7 @@ public class StorageHubServiceUtil { JWTToken umaToken = OIDCUmaUtil.getUMAToken(request, username, currentContext); AccessTokenProvider.instance.set(JWTTokenUtil.getAccessTokenString(umaToken)); } catch (InvalidTokenException | MissingTokenException | RefreshException | NotAuthorizedException - | UMAException e1) { + | UMAException | MissingRefreshTokenException | RefreshTokenExpiredException e1) { _log.warn("could not get UMA Token for context="+currentContext); e1.printStackTrace(); }