You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As in the class NimbusReactiveJwtDecoder, it'd be nice to have a constructor in NimbusJwtDecoderJwkSupport to create the JwtDecoder using only the PublicKey to used to verify the signature.
Version
Spring Security 5.1
Sample
publicNimbusJwtDecoderJwkSupport(RSAPublicKeypublicKey) throwsInvalidKeySpecException, NoSuchAlgorithmException {
RSAKeyrsaKey = newRSAKey.Builder(publicKey).build();
JWKSetjwkSet = newJWKSet(rsaKey);
JWKSourcejwkSource = newImmutableJWKSet<>(jwkSet);
JWSKeySelector<SecurityContext> jwsKeySelector =
newJWSVerificationKeySelector<>(JWSAlgorithm.parse(JwsAlgorithms.RS256), jwkSource);
DefaultJWTProcessorjwtProcessor = newDefaultJWTProcessor<>();
jwtProcessor.setJWSKeySelector(jwsKeySelector);
this.jwtProcessor = newDefaultJWTProcessor<>();
this.jwtProcessor.setJWSKeySelector(jwsKeySelector);
// Spring Security validates the claim set independent from Nimbusthis.jwtProcessor.setJWTClaimsSetVerifier((claims, context) -> {});
}
The text was updated successfully, but these errors were encountered:
Summary
As in the class
NimbusReactiveJwtDecoder
, it'd be nice to have a constructor inNimbusJwtDecoderJwkSupport
to create the JwtDecoder using only the PublicKey to used to verify the signature.Version
Spring Security 5.1
Sample
The text was updated successfully, but these errors were encountered: