Skip to content

Failing to validate it_token with provided jwks_url #446

Answered by panva
teolag asked this question in Q&A
Discussion options

You must be logged in to vote

You should go back to your jwks_uri provider and say that if the JWK's alg is set to RS512 it is incorrect to use it to validate RS256 signed tokens. It's technically possible on a crypto level, sure, but it is not supposed to be like so.

The JWK alg member indicates the intended algorithm with which the key is supposed to be used.

The behaviour of this library is correct and cannot be circumvented.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@panva
Comment options

@teolag
Comment options

@panva
Comment options

@teolag
Comment options

Answer selected by teolag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants