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