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
With Auth0 library, it's possible to use a JWK store for reading signature keys. Example (taken from the README)
finalJwkStorejwkStore = newJwkStore("{JWKS_FILE_HOST}");
finalRSAPrivateKeyprivateKey = //Get the key instancefinalStringprivateKeyId = //Create an Id for the above keyRSAKeyProviderkeyProvider = newRSAKeyProvider() {
@OverridepublicRSAPublicKeygetPublicKeyById(Stringkid) {
//Received 'kid' value might be null if it wasn't defined in the Token's headerRSAPublicKeypublicKey = jwkStore.get(kid);
return (RSAPublicKey) publicKey;
}
@OverridepublicRSAPrivateKeygetPrivateKey() {
returnprivateKey;
}
@OverridepublicStringgetPrivateKeyId() {
returnprivateKeyId;
}
};
Algorithmalgorithm = Algorithm.RSA256(keyProvider);
With Auth0 library, it's possible to use a JWK store for reading signature keys. Example (taken from the README)