diff options
author | Andre Cruz <andre.cruz@co.sapo.pt> | 2013-10-28 17:52:51 +0000 |
---|---|---|
committer | Andre Cruz <andre.cruz@co.sapo.pt> | 2013-10-28 17:52:51 +0000 |
commit | 5b135340a51396124cb51cd246b0a0e598852bb0 (patch) | |
tree | fc6109ecbe3e9f0a440d36abecda9d71e79c0fb8 /oauthlib/oauth2/rfc6749 | |
parent | 99d753d8be8ef831147c5f3ffa5651ace507f356 (diff) | |
download | oauthlib-5b135340a51396124cb51cd246b0a0e598852bb0.tar.gz |
Include the request object in the returned dict, it can be used to cache information that will be used later.
Diffstat (limited to 'oauthlib/oauth2/rfc6749')
-rw-r--r-- | oauthlib/oauth2/rfc6749/grant_types/authorization_code.py | 1 | ||||
-rw-r--r-- | oauthlib/oauth2/rfc6749/grant_types/implicit.py | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py b/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py index 7132105..1d84337 100644 --- a/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py +++ b/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py @@ -326,6 +326,7 @@ class AuthorizationCodeGrant(GrantTypeBase): 'redirect_uri': request.redirect_uri, 'response_type': request.response_type, 'state': request.state, + 'request': request, } def validate_token_request(self, request): diff --git a/oauthlib/oauth2/rfc6749/grant_types/implicit.py b/oauthlib/oauth2/rfc6749/grant_types/implicit.py index 0761287..fcdb606 100644 --- a/oauthlib/oauth2/rfc6749/grant_types/implicit.py +++ b/oauthlib/oauth2/rfc6749/grant_types/implicit.py @@ -331,4 +331,5 @@ class ImplicitGrant(GrantTypeBase): 'redirect_uri': request.redirect_uri, 'response_type': request.response_type, 'state': request.state, + 'request': request, } |