mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-17 15:03:02 +00:00
Change the order for handlers so that the authenticator handler is added before the default handlers.
This commit is contained in:
@@ -464,13 +464,12 @@ class JupyterHub(Application):
|
||||
|
||||
def init_handlers(self):
|
||||
h = []
|
||||
h.extend(handlers.default_handlers)
|
||||
h.extend(apihandlers.default_handlers)
|
||||
# load handlers from the authenticator
|
||||
h.extend(self.authenticator.get_handlers(self))
|
||||
|
||||
# set default handlers
|
||||
h.extend(handlers.default_handlers)
|
||||
h.extend(apihandlers.default_handlers)
|
||||
self.handlers = self.add_url_prefix(self.hub_prefix, h)
|
||||
|
||||
# some extra handlers, outside hub_prefix
|
||||
self.handlers.extend([
|
||||
(r"%s" % self.hub_prefix.rstrip('/'), web.RedirectHandler,
|
||||
|
Reference in New Issue
Block a user