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

verify JWT public key hard code in the configuration.

Can I give an hard coded public key in the verify JWT policy configuration to verify the JWT token given in the request header?

I have tried giving the hard coded key between,

<PublicKey> <JWKS> { "keys": [ { --my key goes here-- }] }


and I have given the source of the token as,

<Source>request.header.authorization</Source>

but I am getting the following error:

{"fault":{"faultstring":"Failed to Decode Token: policy(Verify-JWT-1)","detail":{"errorcode":"steps.jwt.FailedToDecode"}}}

0 2 886
2 REPLIES 2