applying JWT plugin different option in same endponit #2397
-
hello I want to control the JWT token expiration time https://docs.konghq.com/kubernetes-ingress-controller/1.3.x/guides/configure-acl-plugin/ there is a maximum_expiration option in JWT cumer1 key => PROXY_IP/api1 : expire 5 min |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
There is no existing feature that would enable this. Plugins are not able to run more than once per request or vary the configuration they use based on request characteristics. If you're the issuer of the JWT's you can set the If you're not the issuer and instead it's your client's are doing the issuing you will need to write a custom plugin to do this. The plugin could filter on each client's |
Beta Was this translation helpful? Give feedback.
There is no existing feature that would enable this. Plugins are not able to run more than once per request or vary the configuration they use based on request characteristics.
If you're the issuer of the JWT's you can set the
exp
yourself when issuing them, this would be the ideal solution.If you're not the issuer and instead it's your client's are doing the issuing you will need to write a custom plugin to do this. The plugin could filter on each client's
Consumer
objects to check the expiration of the JWT in transit and instigate custom expiration there.