Fix OIDC ID token verification failure message #40685
Merged
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.
In #40523, I've attempted to improve the error message when both ID token and access token have to be verified, as part of the authorization code flow.
Before #40523, if the access token verification failed, users would see a confusing
ID token verification failed...
message.So in #40523, I made sure that they would see a correct
Access token verification failed...
message.Unfortunately, now, when the ID token verification fails, they'll see the same
Access token verification failed...
message which I've noticed only now.So this PR fixes it and I've confirmed the correct error message is reported when the ID token verification fails and when the access token verification fails