Fixed to pass shiro information to InterpreterFactory from ZeppelinServer

This commit is contained in:
Jongyoul Lee 2016-10-18 22:01:44 +09:00
parent 5e7da341e0
commit cee39f40be
2 changed files with 3 additions and 1 deletions

View file

@ -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);

View file

@ -160,6 +160,8 @@ public class InterpreterFactory implements InterpreterGroupFactory {
gson = builder.create();
init();
logger.info("shiroEnabled: {}", shiroEnabled);
}
private void init() throws InterpreterException, IOException, RepositoryException {