Replies: 3 comments
-
These plugins run in Kong/openresty's |
Beta Was this translation helpful? Give feedback.
-
Hi @tyree731 i also need to get the response data for JWT plugin returned, i have already write a custom plugin, but after the JWT plugin, the |
Beta Was this translation helpful? Give feedback.
-
When you say "the response data for JWT plugin", do you mean the above referenced response body:
If so, that body will be available if your plugin operates in the
Separately we have a plugin that, when being requested from our websites, templates plaintext responses from downstream services to make those responses match our company's design guidelines. That plugin has a This response template plugin works on the body set by the |
Beta Was this translation helpful? Give feedback.
-
Hi i want to custom the response body when JWT or rate-limiting plugin return, to compatible with older programs, for example:
{
"status": 401,
"msg": "token expired"
}
{
"status": 429,
"msg": "rate limit exceed"
}
kong version: 2.2.0
I'm not sure that modifying the source code for JWT and rate-limiting plugin is a good idea, if there's no other way.
Beta Was this translation helpful? Give feedback.
All reactions