summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Huot <JonathanHuot@users.noreply.github.com>2020-04-22 14:09:52 +0200
committerGitHub <noreply@github.com>2020-04-22 14:09:52 +0200
commite25544737a7460b075c091d4b300854b1e99e481 (patch)
tree80bd93fd59fad1412e35d4c2b379f26dc914c812
parenta33e8f79f3e9b59778928725d6fa2efcc8b245aa (diff)
parent6befed7747b27e0673b1fd121dc6897be70fa23a (diff)
downloadoauthlib-e25544737a7460b075c091d4b300854b1e99e481.tar.gz
Merge pull request #726 from smarie/master
-rw-r--r--CHANGELOG.rst3
-rw-r--r--oauthlib/oauth2/rfc6749/clients/legacy_application.py1
2 files changed, 3 insertions, 1 deletions
diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 70d3257..9407470 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 1bb0e14..fe2ff4a 100644
--- a/oauthlib/oauth2/rfc6749/clients/legacy_application.py
+++ b/oauthlib/oauth2/rfc6749/clients/legacy_application.py
@@ -79,5 +79,6 @@ class LegacyApplicationClient(Client):
"""
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)