summaryrefslogtreecommitdiff
path: root/oauthlib/oauth2/rfc6749/clients/backend_application.py
diff options
context:
space:
mode:
authorArjan Keeman <arjan.keeman@falckon.nl>2019-03-21 14:17:58 +0100
committerArjan Keeman <arjan.keeman@falckon.nl>2019-04-01 12:51:59 +0200
commit43eece8bddccb1453481b5962c3cff279c7b4ea8 (patch)
tree8f7ada6a83aaa4f44eae7bfe63606696cc026dae /oauthlib/oauth2/rfc6749/clients/backend_application.py
parentff108214eeb8c5f996cff90b469344cfd8a9f5a7 (diff)
downloadoauthlib-43eece8bddccb1453481b5962c3cff279c7b4ea8.tar.gz
fix include_client_id argument
Diffstat (limited to 'oauthlib/oauth2/rfc6749/clients/backend_application.py')
-rw-r--r--oauthlib/oauth2/rfc6749/clients/backend_application.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/oauthlib/oauth2/rfc6749/clients/backend_application.py b/oauthlib/oauth2/rfc6749/clients/backend_application.py
index a000ecf..2483e56 100644
--- a/oauthlib/oauth2/rfc6749/clients/backend_application.py
+++ b/oauthlib/oauth2/rfc6749/clients/backend_application.py
@@ -29,11 +29,11 @@ class BackendApplicationClient(Client):
Since the client authentication is used as the authorization grant,
no additional authorization request is needed.
"""
-
+
grant_type = 'client_credentials'
-
+
def prepare_request_body(self, body='', scope=None,
- include_client_id=None, **kwargs):
+ include_client_id=False, **kwargs):
"""Add the client credentials to the request body.
The client makes a request to the token endpoint by adding the
@@ -45,11 +45,11 @@ class BackendApplicationClient(Client):
:param scope: The scope of the access request as described by
`Section 3.3`_.
- :param include_client_id: `True` to send the `client_id` in the body of
- the upstream request. Default `None`. This is
- required if the client is not authenticating
- with the authorization server as described
- in `Section 3.2.1`_.
+ :param include_client_id: `True` to send the `client_id` in the
+ body of the upstream request. This is required
+ if the client is not authenticating with the
+ authorization server as described in
+ `Section 3.2.1`_. False otherwise (default).
:type include_client_id: Boolean
:param kwargs: Extra credentials to include in the token request.