summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIb Lundgren <ib.lundgren@gmail.com>2013-11-01 02:17:24 -0700
committerIb Lundgren <ib.lundgren@gmail.com>2013-11-01 02:17:24 -0700
commit170d04e87489fb338e660d8248873908037db6ae (patch)
tree3af965fa93ddf0dc580b9de71565ebb9378cdde7
parente606b9025da9c866c0c7fd0164243c3698ce1d0c (diff)
parent5b135340a51396124cb51cd246b0a0e598852bb0 (diff)
downloadoauthlib-170d04e87489fb338e660d8248873908037db6ae.tar.gz
Merge pull request #218 from edevil/ReturnRequest
Include the request object in the returned dict
-rw-r--r--oauthlib/oauth2/rfc6749/grant_types/authorization_code.py1
-rw-r--r--oauthlib/oauth2/rfc6749/grant_types/implicit.py1
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,
}