summaryrefslogtreecommitdiff
path: root/oauthlib
diff options
context:
space:
mode:
authorJonathan Huot <JonathanHuot@users.noreply.github.com>2019-02-25 11:16:12 +0100
committerGitHub <noreply@github.com>2019-02-25 11:16:12 +0100
commitc55efb0f68ead4e5f7e2a31924aeb95152c4dca0 (patch)
tree84891cf8e9b14cd77c7df8c53fc8279293fd104b /oauthlib
parent42023d8303113073e31a57e1bbf70216b7120e20 (diff)
parentb2bbe6e21e383a5038bf7c8e75922aab50104bd5 (diff)
downloadoauthlib-c55efb0f68ead4e5f7e2a31924aeb95152c4dca0.tar.gz
Merge branch 'master' into fix-uri-normalization
Diffstat (limited to 'oauthlib')
-rw-r--r--oauthlib/oauth2/rfc6749/request_validator.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/oauthlib/oauth2/rfc6749/request_validator.py b/oauthlib/oauth2/rfc6749/request_validator.py
index 193a9e1..5ff30d8 100644
--- a/oauthlib/oauth2/rfc6749/request_validator.py
+++ b/oauthlib/oauth2/rfc6749/request_validator.py
@@ -266,7 +266,6 @@ class RequestValidator(object):
- the redirect URI used (``request.redirect_uri``)
- a resource owner / user (``request.user``)
- the authorized scopes (``request.scopes``)
- - the client state, if given (``code.get('state')``)
To support PKCE, you MUST associate the code with:
- Code Challenge (``request.code_challenge``) and
@@ -277,10 +276,6 @@ class RequestValidator(object):
``{'code': 'sdf345jsdf0934f'}``
- It may also have a ``state`` key containing a nonce for the client, if it
- chose to send one. That value should be saved and used in
- ``.validate_code``.
-
It may also have a ``claims`` parameter which, when present, will be a dict
deserialized from JSON as described at
http://openid.net/specs/openid-connect-core-1_0.html#ClaimsParameter
@@ -352,7 +347,7 @@ class RequestValidator(object):
'expires_in': 3600,
'scope': 'string of space separated authorized scopes',
'refresh_token': '23sdf876234', # if issued
- 'state': 'given_by_client', # if supplied by client
+ 'state': 'given_by_client', # if supplied by client (implicit ONLY)
}
Note that while "scope" is a string-separated list of authorized scopes,
@@ -559,7 +554,6 @@ class RequestValidator(object):
with the code in 'save_authorization_code':
- request.user
- - request.state (if given)
- request.scopes
- request.claims (if given)
OBS! The request.user attribute should be set to the resource owner