kong icon indicating copy to clipboard operation
kong copied to clipboard

feat(jwt) : add feature to jwt plugin:allow set headers from claim

Open mtparet opened this issue 7 months ago • 1 comments

Summary Add feature to jwt plugin: allow set header from claims.

Reopenning of https://github.com/Kong/kong/pull/4761 https://github.com/Kong/kong/pull/5713

Full changelog

[Implement] jwt plugin: allow set header from claims
if you configure headers_to_set(set) , headers with prefix "X-Jwt-Claim-" will be set to the response. For example, if 'sub' and 'app' are configured, and both of them are found in jwt's claims, two headers will be set to the response: X-Jwt-Claim-Sub and X-Jwt-Claim-App.

mtparet avatar Jul 12 '24 12:07 mtparet