diff --git a/auth0login/auth0backend.py b/auth0login/auth0backend.py index dd5a86e..b4e3a29 100644 --- a/auth0login/auth0backend.py +++ b/auth0login/auth0backend.py @@ -2,7 +2,7 @@ import requests from social_core.backends.oauth import BaseOAuth2 -class Auth0(BaseOAuth2): # pylint: disable=W0223 +class Auth0(BaseOAuth2): """Auth0 OAuth authentication backend""" name = 'auth0' SCOPE_SEPARATOR = ' ' @@ -17,6 +17,10 @@ class Auth0(BaseOAuth2): # pylint: disable=W0223 """Return the token endpoint.""" return "https://" + self.setting('DOMAIN') + "/oauth/token" + def auth_html(self): + """Return the login endpoint.""" + return "https://" + self.setting('DOMAIN') + "/login/auth0" + def get_user_id(self, details, response): """Return current user id.""" return details['user_id']