You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/01/03 11:54:40 UTC

[GitHub] [apisix] leslie-tsang commented on issue #5930: request help: How can I automatic extend token expiry with jwt auth on apisix ?

leslie-tsang commented on issue #5930:
URL: https://github.com/apache/apisix/issues/5930#issuecomment-1004041743


   > Hi @zhangxingdeppon, just to make sure, do you need the Token generated by Apache APISIX will automatically expand its Expiration time?
   > 
   > According to https://jwt.io/, JSON Web Token is stateless and needs to be generated once it's expired. AFAIK, you may need to implement your logic with `access_token` & `refresh_token` to issue a new Token, see https://stackoverflow.com/questions/53946250/how-to-extend-the-expire-time-in-a-normal-access-token
   > 
   > What do you think, @leslie-tsang ?
   
   IMO, we **shouldn't change** the expiration time without permission[1][2], it defeats the **purpose** of the Token and makes it less reliable. It is best to refresh the token before it has expired.
   
   [1] https://jwt.io/introduction/
   [2] https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.4


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org