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:
Massimiliano Assante 2018-03-05 11:39:39 +00:00
parent ecfff7c9f3
commit 00d6f48100
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}