diff options
author | Jonathan Huot <JonathanHuot@users.noreply.github.com> | 2019-04-23 10:50:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-23 10:50:05 +0200 |
commit | 91a2792da6e968fa72d871b2f0b95a8734f40546 (patch) | |
tree | f4c617b447c5d074db9ab98a09a99943721a5183 /oauthlib/oauth2/rfc6749/clients/legacy_application.py | |
parent | ed8c4f253def93a0d4d78a6ead1a63091f8e4c26 (diff) | |
parent | 81a295de0d00abb37699b6ce6c75737a78b12458 (diff) | |
download | oauthlib-91a2792da6e968fa72d871b2f0b95a8734f40546.tar.gz |
Merge branch 'master' into oidc-hashes
Diffstat (limited to 'oauthlib/oauth2/rfc6749/clients/legacy_application.py')
-rw-r--r-- | oauthlib/oauth2/rfc6749/clients/legacy_application.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/oauthlib/oauth2/rfc6749/clients/legacy_application.py b/oauthlib/oauth2/rfc6749/clients/legacy_application.py index 2449363..ca218e4 100644 --- a/oauthlib/oauth2/rfc6749/clients/legacy_application.py +++ b/oauthlib/oauth2/rfc6749/clients/legacy_application.py @@ -34,14 +34,14 @@ class LegacyApplicationClient(Client): credentials is beyond the scope of this specification. The client MUST discard the credentials once an access token has been obtained. """ - + grant_type = 'password' def __init__(self, client_id, **kwargs): super(LegacyApplicationClient, self).__init__(client_id, **kwargs) def prepare_request_body(self, username, password, body='', scope=None, - include_client_id=None, **kwargs): + include_client_id=False, **kwargs): """Add the resource owner password and username to the request body. The client makes a request to the token endpoint by adding the @@ -54,11 +54,11 @@ class LegacyApplicationClient(Client): into. This may contain extra paramters. Default ''. :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. |