From 00d6f4810048780bf4bb71d849d7c743bc7d557c Mon Sep 17 00:00:00 2001 From: Massimiliano Assante Date: Mon, 5 Mar 2018 11:39:39 +0000 Subject: [PATCH] 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 --- .../portal/plugins/thread/RemoveUserTokenFromVREThread.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/gcube/portal/plugins/thread/RemoveUserTokenFromVREThread.java b/src/main/java/org/gcube/portal/plugins/thread/RemoveUserTokenFromVREThread.java index 12c3e30..e274f8b 100644 --- a/src/main/java/org/gcube/portal/plugins/thread/RemoveUserTokenFromVREThread.java +++ b/src/main/java/org/gcube/portal/plugins/thread/RemoveUserTokenFromVREThread.java @@ -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); }