Also the security token associated to the user is now removed from the given context when leaving a VRE.
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portal/liferay62-plugins/VREFolder-hook@164708 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
ecfff7c9f3
commit
00d6f48100
|
@ -35,6 +35,7 @@ public class RemoveUserTokenFromVREThread implements Runnable {
|
|||
String userToken = authorizationService().resolveTokenByUserAndContext(username, scope);
|
||||
SecurityTokenProvider.instance.set(userToken);
|
||||
authorizationService().removeAllReleatedToken(username, scope);
|
||||
_log.info("*** Removed user token " + username + " in " + scope);
|
||||
} catch (Exception e) {
|
||||
_log.error("Could not remove user token " + username + " in " + scope, e);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue