Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Verify JWT - Provided Key Id did not match any Public Key

I have configured the verify JWT policy below

<VerifyJWT name="VerifyJWT" continueOnError="true"> 
  <IgnoreUnresolvedVariables>false</IgnoreUnresolvedVariables> 
  <Algorithm>PS256</Algorithm> 
  <Source>request.content</Source> 
  <PublicKey> 
    <JWKS ref="register.jwks"/> 
  </PublicKey> 
</VerifyJWT>

The value of kid in the header of JWT is present in the provided jwks. But still I am getting

Provided Key Id did not match any Public Key

I am getting the JWKS using a service callout and assigning the response to this variable register.jwks


Could someone help me out on this? Am I missing anything?


1 5 3,109
5 REPLIES 5