diff options
author | mlboy <mlboy@126.com> | 2018-12-12 11:54:19 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-12 11:54:19 +0800 |
commit | d8d5fe13ce4d29009f79665cb02a932703d9402f (patch) | |
tree | a6ebed3b5a80db2f139adbbf8409638247fa6671 | |
parent | 4f2c7adcc0eba360054d27f48728bb47206a96d3 (diff) | |
download | oauthlib-d8d5fe13ce4d29009f79665cb02a932703d9402f.tar.gz |
change: grant_type as attribute
use refresh_token_key as attribute
-rw-r--r-- | oauthlib/oauth2/rfc6749/clients/base.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/oauthlib/oauth2/rfc6749/clients/base.py b/oauthlib/oauth2/rfc6749/clients/base.py index d8ded50..1a50644 100644 --- a/oauthlib/oauth2/rfc6749/clients/base.py +++ b/oauthlib/oauth2/rfc6749/clients/base.py @@ -47,6 +47,7 @@ class Client(object): Python, this is usually :py:class:`oauthlib.oauth2.WebApplicationClient`. """ + refresh_token_key = 'refresh_token' def __init__(self, client_id, default_token_placement=AUTH_HEADER, @@ -435,7 +436,7 @@ class Client(object): resource owner. """ refresh_token = refresh_token or self.refresh_token - return prepare_token_request('refresh_token', body=body, scope=scope, + return prepare_token_request(self.refresh_token_key, body=body, scope=scope, refresh_token=refresh_token, **kwargs) def _add_bearer_token(self, uri, http_method='GET', body=None, |