Getting an error while trying to generate JWT token: FailedToResolveVariableException

{ 
  "fault": { 
    "faultstring": "Failed to Resolve Variable : policy(Generate-JWT-1) variable(private.key)", 
    "detail": { 
      "errorcode": "steps.jwt.FailedToResolveVariableException" 
    }
  }
}
Solved Solved
1 1 3,082
1 ACCEPTED SOLUTION

It looks like you are passing the key to the GenerateJWT policy in a variable named "private.key" but you have not defined that variable. Take a look at the video on the GenerateJWT page which shows an example of passing the key in a variable:

https://docs.apigee.com/api-platform/reference/policies/generate-jwt-policy

Stephen

View solution in original post

1 REPLY 1

It looks like you are passing the key to the GenerateJWT policy in a variable named "private.key" but you have not defined that variable. Take a look at the video on the GenerateJWT page which shows an example of passing the key in a variable:

https://docs.apigee.com/api-platform/reference/policies/generate-jwt-policy

Stephen