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

GenerateJWT: Exp claim missing in jwt token when ExpiresIn is set to less than 1 second

Platform: ApigeeEdge

When using GenerateJWT policy to generate a JWT token, exp claim is not set when the ExpiresIn property value is set to less than 1 second. Apigee Edge appears to silently ignore this value (between 1-999ms) and as a result it generates a jwt with no exp claim, which means it never expires.

I did not find any documentation regarding this behavior and not sure whether it is a bug.

If ExpiresIn value is something the engine does not like, then instead of silently ignoring it and not setting the exp claim poses a security risk. 

 

Solved Solved
0 4 222
1 ACCEPTED SOLUTION

They'll probably ask you for a test case that reproduces what you are observing. I tried my test ^^ attached above in Apigee Edge, and observed what you observed. 

I expect that the support and engineering team will assign a lower priority since it's not impeding your work. 

View solution in original post

4 REPLIES 4