NimbusJwtDecoder.withPublicKey() does not work with JWT that contains kid #7049
Labels
in: oauth2
An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)
Milestone
Summary
When using NimbusJwtDecoder.withPublicKey() to decode a JWT token that contains a kid the decoding always fails as the provided PublicKey does not match.
Actual Behavior
Signed JWT rejected: Another algorithm expected, or no matching key(s) found
is raised, because no match key is found (JWT token contains key, provided public key not).Expected Behavior
As I specify the public key to used, the jwt token should be tried to be verified using this key. There is no need to find a matching key.
Version
5.2.0.M2
Sample
The text was updated successfully, but these errors were encountered: