Does TYK support JWE?


I’m considering using TYK for a new project but I’m not sure about one the its features.

I manage to successfully onboard few APIs that use JWT without major complications. That works well, but there’s been some changes and I need to move from JWT to JWE (Json Web Encrypted). Is there an easy way of supporting this? I guess I can always write my own middleware to decrypt and validate the token but, is that not going to add a lot of delay to the request?

Any help/feedback is welcome.

JWE is not currently supported out of the box - however you can raise an issue in our Github repo and we’ll add it to our roadmap.

In the mean time you will probably need to write a custom middleware. Depending on how you handle it though there’s mechanisms to speed things up, like the auth middleware token caching capability.