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

JWT verification for the token from Auth0 authorization server

Hi,

I'm facing an issue when verifying the token passed in the authorization header. I hit another apigee proxy endpoint in apigee edge and get back the access token from auth0. I have another API endpoint in apigee where I validate the token that is sent in the authorization header (Bearer <accesstoken>). All I need to verify is that the token issued by Auth0 or not. I have the attached policy to verify JWT.However, I'm getting the error

{ "fault": { "faultstring": "Invalid token: policy(JWT-Verify-Auth0)", "detail": { "errorcode": "steps.jwt.InvalidToken" } } }

In trace, I could see this

jwt.JWT-Verify-Auth0.error: The Token's Signature resulted invalid when verified using the Algorithm: SHA256withRSA

Could someone help in identifying the issue?screen-shot-2019-04-29-at-91747-pm.jpg

0 2 692
2 REPLIES 2