summaryrefslogtreecommitdiff
path: root/oauthlib/oauth2/rfc6749/clients/backend_application.py
diff options
context:
space:
mode:
authorJonathan Huot <JonathanHuot@users.noreply.github.com>2019-07-09 17:14:49 +0200
committerGitHub <noreply@github.com>2019-07-09 17:14:49 +0200
commit3de7007c6885f0ac23ff2c56d6a65d8f258600a2 (patch)
tree78215926dc598674ee44eea3c03c0e6e0ca81034 /oauthlib/oauth2/rfc6749/clients/backend_application.py
parent75cc688ed923724e1bfe20a2a030ee92a151095e (diff)
parentd7b90fc841694f126ec63500ea8f74330c4672eb (diff)
downloadoauthlib-3de7007c6885f0ac23ff2c56d6a65d8f258600a2.tar.gz
Merge branch 'master' into docs-flows-hooks
Diffstat (limited to 'oauthlib/oauth2/rfc6749/clients/backend_application.py')
-rw-r--r--oauthlib/oauth2/rfc6749/clients/backend_application.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/oauthlib/oauth2/rfc6749/clients/backend_application.py b/oauthlib/oauth2/rfc6749/clients/backend_application.py
index 2483e56..5737814 100644
--- a/oauthlib/oauth2/rfc6749/clients/backend_application.py
+++ b/oauthlib/oauth2/rfc6749/clients/backend_application.py
@@ -71,5 +71,6 @@ class BackendApplicationClient(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,
scope=scope, **kwargs)