1
0
Fork 0

Linting W0223

We were missing a call to return the login page from a BaseAuth abstract function.

Once this is in dev (an auth0 environment) I suspect it might fix librespacefoundation/satnogs/satnogs-db#309

Signed-off-by: Corey Shields <cshields@gmail.com>
merge-requests/399/head
Corey Shields 2019-07-13 15:40:28 -04:00
parent 678de105dd
commit fca0c1d419
2 changed files with 4 additions and 1 deletions

View File

@ -17,7 +17,6 @@ disable=
R0914,
R0915,
R1705,
W0223,
W0511,
W0612,
W0613,

View File

@ -18,6 +18,10 @@ class Auth0(BaseOAuth2):
"""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']