Skip to content

Commit cee39f4

Browse files
committed
Fixed to pass shiro information to InterpreterFactory from ZeppelinServer
1 parent 5e7da34 commit cee39f4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

zeppelin-server/src/main/java/org/apache/zeppelin/server/ZeppelinServer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public ZeppelinServer() throws Exception {
8989
this.heliumApplicationFactory = new HeliumApplicationFactory();
9090
this.schedulerFactory = new SchedulerFactory();
9191
this.replFactory = new InterpreterFactory(conf, notebookWsServer,
92-
notebookWsServer, heliumApplicationFactory, depResolver);
92+
notebookWsServer, heliumApplicationFactory, depResolver, SecurityUtils.isAuthenticated());
9393
this.notebookRepo = new NotebookRepoSync(conf);
9494
this.notebookIndex = new LuceneSearch();
9595
this.notebookAuthorization = NotebookAuthorization.init(conf);

zeppelin-zengine/src/main/java/org/apache/zeppelin/interpreter/InterpreterFactory.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ public InterpreterFactory(ZeppelinConfiguration conf, InterpreterOption defaultO
160160
gson = builder.create();
161161

162162
init();
163+
164+
logger.info("shiroEnabled: {}", shiroEnabled);
163165
}
164166

165167
private void init() throws InterpreterException, IOException, RepositoryException {

0 commit comments

Comments
 (0)