none
This commit is contained in:
parent
f0c5ca5574
commit
e567750d6f
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue