diff options
author | Kyle <kylevalade@gmail.com> | 2015-05-09 12:46:51 -0700 |
---|---|---|
committer | Kyle <kylevalade@gmail.com> | 2015-05-09 12:46:51 -0700 |
commit | e1af87fd6f520576f3547ce69224779a40ebd85a (patch) | |
tree | aaaab6c303fce69cc51b70bcd6352aa88ce99e93 /oauthlib/common.py | |
parent | 539558a02edbadb8d6ef690fb0beb2510a5eeb17 (diff) | |
download | oauthlib-e1af87fd6f520576f3547ce69224779a40ebd85a.tar.gz |
#340 - provide default values for some params in common.Request
Diffstat (limited to 'oauthlib/common.py')
-rw-r--r-- | oauthlib/common.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/oauthlib/common.py b/oauthlib/common.py index 8b2b460..27c97a5 100644 --- a/oauthlib/common.py +++ b/oauthlib/common.py @@ -381,7 +381,15 @@ class Request(object): self.decoded_body = extract_params(encode(body)) self.oauth_params = [] - self._params = {} + self._params = { + "client_id": None, + "grant_type": None, + "redirect_uri": None, + "response_type": None, + "state": None, + "refresh_token": None, + "access_token": None, + } self._params.update(dict(urldecode(self.uri_query))) self._params.update(dict(self.decoded_body or [])) self._params.update(self.headers) |