diff options
author | Sylvain MARIE <sylvain.marie@se.com> | 2020-04-19 13:58:44 +0200 |
---|---|---|
committer | Sylvain MARIE <sylvain.marie@se.com> | 2020-04-19 13:58:44 +0200 |
commit | f46a7f0abf177befaeb271c7d3012c4213773556 (patch) | |
tree | 066c5357373c761a5d0f0277893432a606c6bc13 /oauthlib/oauth2/rfc6749/clients/web_application.py | |
parent | d4716eb95e9590bb47381a64cda1d57bad8dd907 (diff) | |
download | oauthlib-f46a7f0abf177befaeb271c7d3012c4213773556.tar.gz |
MobileApplicationClient.prepare_request_uri and MobileApplicationClient.parse_request_uri_response, ServiceApplicationClient.prepare_request_body, and WebApplicationClient.prepare_request_uri now correctly use the default `scope` provided in constructor. Fixes #728
Diffstat (limited to 'oauthlib/oauth2/rfc6749/clients/web_application.py')
-rw-r--r-- | oauthlib/oauth2/rfc6749/clients/web_application.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/oauthlib/oauth2/rfc6749/clients/web_application.py b/oauthlib/oauth2/rfc6749/clients/web_application.py index aedc9d1..42b2c96 100644 --- a/oauthlib/oauth2/rfc6749/clients/web_application.py +++ b/oauthlib/oauth2/rfc6749/clients/web_application.py @@ -84,6 +84,7 @@ class WebApplicationClient(Client): .. _`Section 3.3`: https://tools.ietf.org/html/rfc6749#section-3.3 .. _`Section 10.12`: https://tools.ietf.org/html/rfc6749#section-10.12 """ + scope = self.scope if scope is None else scope return prepare_grant_uri(uri, self.client_id, 'code', redirect_uri=redirect_uri, scope=scope, state=state, **kwargs) |