summaryrefslogtreecommitdiff
path: root/oauthlib
diff options
context:
space:
mode:
authorJonathan Huot <JonathanHuot@users.noreply.github.com>2020-01-29 16:02:12 +0100
committerGitHub <noreply@github.com>2020-01-29 16:02:12 +0100
commit7f5e92afed0d11536f715245351a3891a2aa5dde (patch)
tree5ed1b4c947c6debb530ffb5dbb87756a90d31d5b /oauthlib
parentab0de9e28db812eb204f12335b07d91361b16676 (diff)
parent845892c6cff508792bc577ebccda2317bc8434f5 (diff)
downloadoauthlib-7f5e92afed0d11536f715245351a3891a2aa5dde.tar.gz
Merge branch 'master' into doc-oidc
Diffstat (limited to 'oauthlib')
-rw-r--r--oauthlib/oauth2/rfc6749/grant_types/client_credentials.py2
-rw-r--r--oauthlib/openid/connect/core/grant_types/dispatchers.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/oauthlib/oauth2/rfc6749/grant_types/client_credentials.py b/oauthlib/oauth2/rfc6749/grant_types/client_credentials.py
index fdb0bf6..05f13af 100644
--- a/oauthlib/oauth2/rfc6749/grant_types/client_credentials.py
+++ b/oauthlib/oauth2/rfc6749/grant_types/client_credentials.py
@@ -117,8 +117,8 @@ class ClientCredentialsGrant(GrantTypeBase):
# Ensure client is authorized use of this grant type
self.validate_grant_type(request)
- log.debug('Authorizing access to user %r.', request.user)
request.client_id = request.client_id or request.client.client_id
+ log.debug('Authorizing access to client %r.', request.client_id)
self.validate_scopes(request)
for validator in self.custom_validators.post_token:
diff --git a/oauthlib/openid/connect/core/grant_types/dispatchers.py b/oauthlib/openid/connect/core/grant_types/dispatchers.py
index e6a9259..6dcc0cb 100644
--- a/oauthlib/openid/connect/core/grant_types/dispatchers.py
+++ b/oauthlib/openid/connect/core/grant_types/dispatchers.py
@@ -83,7 +83,7 @@ class AuthorizationTokenGrantDispatcher(Dispatcher):
code = parameters.get('code', None)
redirect_uri = parameters.get('redirect_uri', None)
- # If code is not pressent fallback to `default_grant` wich will
+ # If code is not pressent fallback to `default_grant` which will
# raise an error for the missing `code` in `create_token_response` step.
if code:
scopes = self.request_validator.get_authorization_code_scopes(client_id, code, redirect_uri, request)