mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Fixed to pass shiro information to InterpreterFactory from ZeppelinServer
This commit is contained in:
parent
5e7da341e0
commit
cee39f40be
2 changed files with 3 additions and 1 deletions
|
|
@ -89,7 +89,7 @@ public class ZeppelinServer extends Application {
|
|||
this.heliumApplicationFactory = new HeliumApplicationFactory();
|
||||
this.schedulerFactory = new SchedulerFactory();
|
||||
this.replFactory = new InterpreterFactory(conf, notebookWsServer,
|
||||
notebookWsServer, heliumApplicationFactory, depResolver);
|
||||
notebookWsServer, heliumApplicationFactory, depResolver, SecurityUtils.isAuthenticated());
|
||||
this.notebookRepo = new NotebookRepoSync(conf);
|
||||
this.notebookIndex = new LuceneSearch();
|
||||
this.notebookAuthorization = NotebookAuthorization.init(conf);
|
||||
|
|
|
|||
|
|
@ -160,6 +160,8 @@ public class InterpreterFactory implements InterpreterGroupFactory {
|
|||
gson = builder.create();
|
||||
|
||||
init();
|
||||
|
||||
logger.info("shiroEnabled: {}", shiroEnabled);
|
||||
}
|
||||
|
||||
private void init() throws InterpreterException, IOException, RepositoryException {
|
||||
|
|
|
|||
Loading…
Reference in a new issue