mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-07 10:04:07 +00:00
update back pre-commit hook
specify minimum target_version as py36 results in some churn
This commit is contained in:
@@ -287,7 +287,7 @@ class HubAuth(SingletonConfigurable):
|
||||
|
||||
def _check_hub_authorization(self, url, cache_key=None, use_cache=True):
|
||||
"""Identify a user with the Hub
|
||||
|
||||
|
||||
Args:
|
||||
url (str): The API URL to check the Hub for authorization
|
||||
(e.g. http://127.0.0.1:8081/hub/api/authorizations/token/abc-def)
|
||||
@@ -603,10 +603,10 @@ class HubOAuth(HubAuth):
|
||||
|
||||
def token_for_code(self, code):
|
||||
"""Get token for OAuth temporary code
|
||||
|
||||
|
||||
This is the last step of OAuth login.
|
||||
Should be called in OAuth Callback handler.
|
||||
|
||||
|
||||
Args:
|
||||
code (str): oauth code for finishing OAuth login
|
||||
Returns:
|
||||
|
Reference in New Issue
Block a user