-
Hi! Is there someone out there who can help me with this? What can I do to use the jwks to validate the token? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
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. |
Beta Was this translation helpful? Give feedback.
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.