Thanks to visit codestin.com
Credit goes to github.com

Skip to content

OIDC: Raise error=invalid_request when nonce is mandatory #656

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

Merged
merged 7 commits into from
Feb 28, 2019

Conversation

JonathanHuot
Copy link
Member

@JonathanHuot JonathanHuot commented Feb 25, 2019

Until now, only OIDC implicit was raising an error, but OIDC hybrid contain a couple of mandatory nonce, too.

As OIDC specification states, nonce is REQUIRED or OPTIONAL depending the response_type parameter.

Mapping below:

response_type=code -> nonce optional
response_type=id_token token -> nonce required
response_type=id_token -> nonce required
response_type=code id_token -> nonce required
response_type=code id_token token -> nonce required
response_type=code token -> nonce optional

Note: I moved a couple of "Hybrid" tests which were in the test_implicit file instead of test_hybrid. I have done that in a single commit, to ease the review.

@JonathanHuot JonathanHuot added the OIDC OpenID Connect label Feb 25, 2019
@wiliamsouza
Copy link
Member

@JonathanHuot Great work! Can you please link the specification that state that.
Reviewing this pr ...

@JonathanHuot
Copy link
Member Author

Hi @wiliamsouza, it has been clarified recently. It was not explained like this when you started the implementation :-)

Have a look at https://bitbucket.org/openid/connect/commits/31240ed1f177b16b589b54c3795ea0187fa5b85e and https://openid.bitbucket.io/connect/openid-connect-core-1_0.html#HybridAuthRequest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OIDC OpenID Connect
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants