add get_login_url to HubAuthenticated

needed for tornado's default redirect
This commit is contained in:
Min RK
2017-01-25 13:52:14 +01:00
parent 4f1eec31a1
commit ad52398087

View File

@@ -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.