diff options
author | Jonathan Huot <jonathan.huot@thomsonreuters.com> | 2018-08-06 19:01:53 +0200 |
---|---|---|
committer | Jonathan Huot <jonathan.huot@thomsonreuters.com> | 2018-08-06 19:01:53 +0200 |
commit | 38467a8a001fdbb5ae5661acfcea4e806b82b2b5 (patch) | |
tree | 8de931ea1a5c0931c59e41ae7fbea4c3dc63fbf8 /oauthlib/oauth2/rfc6749 | |
parent | fbacd77b602e4c60f8da2413c150fa7f20b2f83c (diff) | |
download | oauthlib-38467a8a001fdbb5ae5661acfcea4e806b82b2b5.tar.gz |
Implicit was not converting expires_in into integers
Diffstat (limited to 'oauthlib/oauth2/rfc6749')
-rw-r--r-- | oauthlib/oauth2/rfc6749/parameters.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/oauthlib/oauth2/rfc6749/parameters.py b/oauthlib/oauth2/rfc6749/parameters.py index 9ea8c44..c5127e7 100644 --- a/oauthlib/oauth2/rfc6749/parameters.py +++ b/oauthlib/oauth2/rfc6749/parameters.py @@ -279,6 +279,10 @@ def parse_implicit_response(uri, state=None, scope=None): fragment = urlparse.urlparse(uri).fragment params = dict(urlparse.parse_qsl(fragment, keep_blank_values=True)) + for key in ('expires_in',): + if key in params: # cast things to int + params[key] = int(params[key]) + if 'scope' in params: params['scope'] = scope_to_list(params['scope']) |