|
|
|
@ -161,9 +161,9 @@ public class StorageHubServiceUtil {
|
|
|
|
|
String toReturn = "";
|
|
|
|
|
PortalContext pContext = PortalContext.getConfiguration();
|
|
|
|
|
String currentContext = PortalContext.getConfiguration().getCurrentScope(""+groupId);
|
|
|
|
|
long userId = pContext.getCurrentUser(request).getUserId();
|
|
|
|
|
String username = pContext.getCurrentUser(request).getUsername();
|
|
|
|
|
try {
|
|
|
|
|
JWTToken umaToken = OIDCUmaUtil.getUMAToken(request, userId, currentContext);
|
|
|
|
|
JWTToken umaToken = OIDCUmaUtil.getUMAToken(request, username, currentContext);
|
|
|
|
|
UmaJWTProvider.instance.set(umaToken.getRaw());
|
|
|
|
|
} catch (InvalidTokenException | MissingTokenException | RefreshException | NotAuthorizedException
|
|
|
|
|
| UMAException e1) {
|
|
|
|
|