diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 70d3257f..94074708 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -34,8 +34,9 @@ OAuth2.0 Provider - Bugfixes OAuth2.0 Client - Bugfixes * #290: Fix Authorization Code's errors processing - * #603: BackendApplication.Client.prepare_request_body use the `scope` argument as intended. + * #603: BackendApplicationClient.prepare_request_body use the `scope` argument as intended. * #672: Fix edge case when `expires_in=Null` + * #725: LegacyApplicationClient.prepare_request_body now correctly uses the default `scope` provided in constructor OAuth1.0 Client diff --git a/oauthlib/oauth2/rfc6749/clients/legacy_application.py b/oauthlib/oauth2/rfc6749/clients/legacy_application.py index 1bb0e14f..fe2ff4ae 100644 --- a/oauthlib/oauth2/rfc6749/clients/legacy_application.py +++ b/oauthlib/oauth2/rfc6749/clients/legacy_application.py @@ -79,5 +79,6 @@ def prepare_request_body(self, username, password, body='', scope=None, """ kwargs['client_id'] = self.client_id kwargs['include_client_id'] = include_client_id + scope = self.scope if scope is None else scope return prepare_token_request(self.grant_type, body=body, username=username, password=password, scope=scope, **kwargs) pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy