Edge Microgateway: Error while generating access token

Not applicable

Hi,

I'm using the edge microgateway v2.5.19. After setup of the edge microgateway, I tried to get the access token, but an error occurred while generating the access token.

The details of the response are:

current edgemicro version is 2.5.19

{ fault: { faultstring: 'Failed to Resolve Variable : policy(Generate-Access-Token) variable(nbf)',

detail: { errorcode: 'steps.jwt.FailedToResolveVariableException' } } }

I tried the earlier versions till the version 2.5.8 and I had the same error.

Any suggestion please?

0 3 333
3 REPLIES 3

Former Community Member
Not applicable

Looks like the Generate JWT policy in the "VerifyApiKey" condition is missing the nbf claim. Can you please add the claim as shown here?

https://github.com/apigee/microgateway-edgeauth/blob/master/apiproxy/policies/Generate-VerifyKey-Tok...

<NotBefore ref="nbf"/>

Former Community Member
Not applicable

Hi @srinandans, thanks to the upgrade of the plugin the issue was fixed.

Thank you for you answer.