From ad52398087cd7fc008b5d7c63ff425cf7748db23 Mon Sep 17 00:00:00 2001 From: Min RK Date: Wed, 25 Jan 2017 13:52:14 +0100 Subject: [PATCH] add get_login_url to HubAuthenticated needed for tornado's default redirect --- jupyterhub/services/auth.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jupyterhub/services/auth.py b/jupyterhub/services/auth.py index 115d73b4..e30eace1 100644 --- a/jupyterhub/services/auth.py +++ b/jupyterhub/services/auth.py @@ -312,6 +312,10 @@ class HubAuthenticated(object): def hub_auth(self, auth): self._hub_auth = auth + def get_login_url(self): + """Return the Hub's login URL""" + return self.hub_auth.login_url + def check_hub_user(self, user_model): """Check whether Hub-authenticated user should be allowed.