Skip to content

Commit

Permalink
fix: stop sending state on the authorisation code token grant
Browse files Browse the repository at this point in the history
This was added a long time ago as it was recommended by
an early ‘mix-up mitigation’ draft. It is now no longer the
recommended option as evidenced by the latest ‘oauth
security topics’ BCP.
  • Loading branch information
davidgtonge authored and panva committed Sep 15, 2018
1 parent e6959a2 commit c4c9e50
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,6 @@ class Client {
code: params.code,
redirect_uri: redirectUri,
code_verifier: checks.code_verifier,
state: checks.state,
})
.then(tokenset => this.decryptIdToken(tokenset))
.then(tokenset => this.validateIdToken(tokenset, checks.nonce, 'token', checks.max_age))
Expand Down

0 comments on commit c4c9e50

Please sign in to comment.