add comment in zeppelinhubRealm about saving user session in a singleton map

This commit is contained in:
Anthony Corbacho 2016-11-18 17:56:47 +01:00
parent 5931ab693e
commit a8aeb51899

View file

@ -161,6 +161,8 @@ public class ZeppelinHubRealm extends AuthorizingRealm {
ZeppelinServer.notebookWsServer.broadcastReloadedNoteList(
new org.apache.zeppelin.user.AuthenticationInfo(account.login), userAndRoles);
// Add ZeppelinHub user_session token this singleton map, this will help ZeppelinHubRepo
// to get specific information about the current user.
UserSessionContainer.instance.setSession(account.login, userSession);
return account;
}