Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/check nonce state hs256 tokens #952

Merged
merged 2 commits into from
Jun 19, 2019

Conversation

luisrudge
Copy link
Contributor

Changes

When you use HS256 tokens, idtoken-verifier will fail validation (because it only supports RS256). To get the token information, we use /userinfo. Previously, we'd skip checking nonce and state from the id_token and call /userinfo directly. This PR makes sure we check for nonce and state before calling /userinfo.

I updated idtoken-verifier and a few test dependencies as well (make sure we're using the same test environment as idtoken-verifier).

Testing

[x] This change adds unit test coverage

[ ] This change adds integration test coverage

@luisrudge luisrudge requested a review from a team June 18, 2019 20:14
@luisrudge luisrudge added this to the v9.11.0 milestone Jun 18, 2019
@luisrudge luisrudge requested a review from rikaardhosein June 18, 2019 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants