summaryrefslogtreecommitdiff
path: root/oauthlib/oauth2/rfc6749/clients/backend_application.py
diff options
context:
space:
mode:
authorJonathan Huot <JonathanHuot@users.noreply.github.com>2019-07-04 09:34:36 +0200
committerGitHub <noreply@github.com>2019-07-04 09:34:36 +0200
commit4112c2acb4b55b4dff679e83dc645e072e65ca65 (patch)
tree409c39dd1b0edb7e7e8de7cd487da754aa25a2bc /oauthlib/oauth2/rfc6749/clients/backend_application.py
parent588abb50010d434c0de5ad9c479d666b7b6ab0bd (diff)
parentd7b90fc841694f126ec63500ea8f74330c4672eb (diff)
downloadoauthlib-4112c2acb4b55b4dff679e83dc645e072e65ca65.tar.gz
Merge branch 'master' into oidc-userinfo
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)