Skip to content

applying JWT plugin different option in same endponit #2397

Answered by shaneutt
liveforfun asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by liveforfun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants