##// END OF EJS Templates
make logout_handler overridable
Min RK -
Show More
@@ -183,6 +183,7 b' class NotebookWebApplication(web.Application):'
183 183 cookie_secret=ipython_app.cookie_secret,
184 184 login_url=url_path_join(base_url,'/login'),
185 185 login_handler_class=ipython_app.login_handler_class,
186 logout_handler_class=ipython_app.logout_handler_class,
186 187 password=ipython_app.password,
187 188
188 189 # managers
@@ -213,7 +214,7 b' class NotebookWebApplication(web.Application):'
213 214 handlers = []
214 215 handlers.extend(load_handlers('tree.handlers'))
215 216 handlers.extend([(r"/login", settings['login_handler_class'])])
216 handlers.extend(load_handlers('auth.logout'))
217 handlers.extend([(r"/logout", settings['logout_handler_class'])])
217 218 handlers.extend(load_handlers('files.handlers'))
218 219 handlers.extend(load_handlers('notebook.handlers'))
219 220 handlers.extend(load_handlers('nbconvert.handlers'))
@@ -653,6 +654,10 b' class NotebookApp(BaseIPythonApplication):'
653 654 config=True,
654 655 help='The login handler class to use.')
655 656
657 logout_handler = DottedObjectName('IPython.html.auth.logout.LogoutHandler',
658 config=True,
659 help='The logout handler class to use.')
660
656 661 trust_xheaders = Bool(False, config=True,
657 662 help=("Whether to trust or not X-Scheme/X-Forwarded-Proto and X-Real-Ip/X-Forwarded-For headers"
658 663 "sent by the upstream reverse proxy. Necessary if the proxy handles SSL")
@@ -751,6 +756,7 b' class NotebookApp(BaseIPythonApplication):'
751 756 self.cluster_manager = kls(parent=self, log=self.log)
752 757 self.cluster_manager.update_profiles()
753 758 self.login_handler_class = import_item(self.login_handler)
759 self.logout_handler_class = import_item(self.logout_handler)
754 760
755 761 kls = import_item(self.config_manager_class)
756 762 self.config_manager = kls(parent=self, log=self.log,
General Comments 0
You need to be logged in to leave comments. Login now