mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
add userAndRoles
This commit is contained in:
parent
0f2ade7f4c
commit
b3e6ed308f
1 changed files with 6 additions and 2 deletions
|
|
@ -20,6 +20,7 @@ import java.io.IOException;
|
|||
import java.net.MalformedURLException;
|
||||
import java.net.URI;
|
||||
import java.net.URISyntaxException;
|
||||
import java.util.HashSet;
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
|
||||
import org.apache.commons.httpclient.HttpClient;
|
||||
|
|
@ -150,8 +151,11 @@ public class ZeppelinHubRealm extends AuthorizingRealm {
|
|||
throw new AuthenticationException("Cannot login to ZeppelinHub");
|
||||
}
|
||||
|
||||
ZeppelinServer.notebookWsServer
|
||||
.broadcastReloadedNoteList(new org.apache.zeppelin.user.AuthenticationInfo(account.login));
|
||||
/* TODO(khalid): add proper roles and add listener */
|
||||
HashSet<String> userAndRoles = new HashSet<String>();
|
||||
userAndRoles.add(account.login);
|
||||
ZeppelinServer.notebookWsServer.broadcastReloadedNoteList(
|
||||
new org.apache.zeppelin.user.AuthenticationInfo(account.login), userAndRoles);
|
||||
|
||||
return account;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue