Fix nonce parameter inside token endpoint.
This commit is contained in:
parent
6dde3a59a8
commit
a690a57a03
1 changed files with 1 additions and 2 deletions
|
@ -33,7 +33,6 @@ class TokenEndpoint(object):
|
|||
self.params.grant_type = query_dict.get('grant_type', '')
|
||||
self.params.code = query_dict.get('code', '')
|
||||
self.params.state = query_dict.get('state', '')
|
||||
self.params.nonce = query_dict.get('nonce', '')
|
||||
|
||||
def validate_params(self):
|
||||
if not (self.params.grant_type == 'authorization_code'):
|
||||
|
@ -72,7 +71,7 @@ class TokenEndpoint(object):
|
|||
id_token_dic = create_id_token(
|
||||
user=self.code.user,
|
||||
aud=self.client.client_id,
|
||||
nonce=self.params.nonce,
|
||||
nonce=self.code.nonce,
|
||||
)
|
||||
|
||||
token = create_token(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue