Add support to extract from different identifier on JWT
under Security Policy
#2186
Labels
area/api
API-related issues
area/policy
help wanted
Extra attention is needed
kind/enhancement
New feature or request
Description:
Follow up from #1930.
Currently
JWT
only enables the default behavior to extract the JWT identifier from an HTTP request which usesAuthorization
header using Bearer format as well as query param usingaccess_token
.Thus, in my current use case, the requirement states that the JWT needs to be extracted from the
Cookie
, but because EG does not support this, I have to modify it using the Envoy Gateway Extension service. Hence, it would be much better if EG could support this behavior directly.Proposal:
Add support to extract the JWT identifier from available options such as
from_cookies
,from_headers
, and/orfrom_params
, while keeping the default behavior if there are no extractors included in the API.We could introduce new fields for these additional extractors like below;
[optional Relevant Links:]
The text was updated successfully, but these errors were encountered: