mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
revert shiri.ini
if fromMessage.principal.equals("anonymous") then set user as null
This commit is contained in:
parent
fadc6d92ff
commit
d928203cf6
2 changed files with 4 additions and 2 deletions
|
|
@ -33,6 +33,6 @@ user2 = password3
|
|||
# anon means the access is anonymous.
|
||||
# authcBasic means Basic Auth Security
|
||||
# To enfore security, comment the line below and uncomment the next one
|
||||
#/** = anon
|
||||
/** = authcBasic
|
||||
/** = anon
|
||||
#/** = authcBasic
|
||||
|
||||
|
|
|
|||
|
|
@ -691,6 +691,8 @@ public class NotebookServer extends WebSocketServlet implements
|
|||
p.setTitle((String) fromMessage.get("title"));
|
||||
if (!fromMessage.principal.equals("anonymous")) {
|
||||
p.setUser(fromMessage.principal);
|
||||
} else {
|
||||
p.setUser(null);
|
||||
}
|
||||
|
||||
Map<String, Object> params = (Map<String, Object>) fromMessage
|
||||
|
|
|
|||
Loading…
Reference in a new issue