OIDC: Raise error=invalid_request when nonce is mandatory #656
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 theresponse_type
parameter.Mapping below:
response_type=code
->nonce
optionalresponse_type=id_token token
->nonce
requiredresponse_type=id_token
->nonce
requiredresponse_type=code id_token
->nonce
requiredresponse_type=code id_token token
->nonce
requiredresponse_type=code token
->nonce
optionalNote: I moved a couple of "Hybrid" tests which were in the
test_implicit
file instead oftest_hybrid
. I have done that in a single commit, to ease the review.