diff options
author | mlboy <mlboy@126.com> | 2018-12-12 11:59:37 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-12 11:59:37 +0800 |
commit | cb9126fa94d2ac5f798a1e1894709bf1f3cd898d (patch) | |
tree | d77b942f78d7445f2d2719234b64fcc5fa6f32da /oauthlib/oauth2/rfc6749 | |
parent | d8d5fe13ce4d29009f79665cb02a932703d9402f (diff) | |
download | oauthlib-cb9126fa94d2ac5f798a1e1894709bf1f3cd898d.tar.gz |
change: response_type as attribute
Diffstat (limited to 'oauthlib/oauth2/rfc6749')
-rw-r--r-- | oauthlib/oauth2/rfc6749/clients/mobile_application.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/oauthlib/oauth2/rfc6749/clients/mobile_application.py b/oauthlib/oauth2/rfc6749/clients/mobile_application.py index aa20daa..11c6c51 100644 --- a/oauthlib/oauth2/rfc6749/clients/mobile_application.py +++ b/oauthlib/oauth2/rfc6749/clients/mobile_application.py @@ -45,6 +45,8 @@ class MobileApplicationClient(Client): redirection URI, it may be exposed to the resource owner and other applications residing on the same device. """ + + response_type = 'token' def prepare_request_uri(self, uri, redirect_uri=None, scope=None, state=None, **kwargs): @@ -91,7 +93,7 @@ class MobileApplicationClient(Client): .. _`Section 3.3`: https://tools.ietf.org/html/rfc6749#section-3.3 .. _`Section 10.12`: https://tools.ietf.org/html/rfc6749#section-10.12 """ - return prepare_grant_uri(uri, self.client_id, 'token', + return prepare_grant_uri(uri, self.client_id, self.response_type, redirect_uri=redirect_uri, state=state, scope=scope, **kwargs) def parse_request_uri_response(self, uri, state=None, scope=None): |