From 142976dbab0e659ab9d0f0020a6debfb3ab56c77 Mon Sep 17 00:00:00 2001 From: Bohdan Date: Mon, 13 Jan 2020 17:53:34 +0200 Subject: typo in log message for client_credentials --- oauthlib/oauth2/rfc6749/grant_types/client_credentials.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oauthlib/oauth2/rfc6749/grant_types/client_credentials.py b/oauthlib/oauth2/rfc6749/grant_types/client_credentials.py index fdb0bf6..a9d0f73 100644 --- a/oauthlib/oauth2/rfc6749/grant_types/client_credentials.py +++ b/oauthlib/oauth2/rfc6749/grant_types/client_credentials.py @@ -117,7 +117,7 @@ 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) + log.debug('Authorizing access to client %r.', request.client.client_id) request.client_id = request.client_id or request.client.client_id self.validate_scopes(request) -- cgit v1.2.1 From 45a3f40266cd8ee7759212915e6a474bf57ea4f4 Mon Sep 17 00:00:00 2001 From: Bohdan Date: Mon, 13 Jan 2020 18:17:21 +0200 Subject: typo in log message for client_credentials --- oauthlib/oauth2/rfc6749/grant_types/client_credentials.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oauthlib/oauth2/rfc6749/grant_types/client_credentials.py b/oauthlib/oauth2/rfc6749/grant_types/client_credentials.py index a9d0f73..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 client %r.', request.client.client_id) 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: -- cgit v1.2.1