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
parent
678de105dd
commit
fca0c1d419
|
@ -17,7 +17,6 @@ disable=
|
||||||
R0914,
|
R0914,
|
||||||
R0915,
|
R0915,
|
||||||
R1705,
|
R1705,
|
||||||
W0223,
|
|
||||||
W0511,
|
W0511,
|
||||||
W0612,
|
W0612,
|
||||||
W0613,
|
W0613,
|
||||||
|
|
|
@ -18,6 +18,10 @@ class Auth0(BaseOAuth2):
|
||||||
"""Return the token endpoint."""
|
"""Return the token endpoint."""
|
||||||
return "https://" + self.setting('DOMAIN') + "/oauth/token"
|
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):
|
def get_user_id(self, details, response):
|
||||||
"""Return current user id."""
|
"""Return current user id."""
|
||||||
return details['user_id']
|
return details['user_id']
|
||||||
|
|
Loading…
Reference in New Issue