NimbusJwtDecoder.withSecretKey() does not work with JWT that contains kid #7056
Labels
in: oauth2
An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)
Milestone
Uh oh!
There was an error while loading. Please reload this page.
Related to #7049
Summary
When using NimbusJwtDecoder.withSecretKey() to decode a JWT token that contains a kid the decoding always fails as the provided SecretKey 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 secret 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: