-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support JWT extraction from cookies in jwt_authn #17424
Labels
Comments
Looked at the structure of
I can contribute a PR if the community thinks this would be a good addition |
Seems a reasonable feature. @qiwzhang WDYT? |
Came here from #7025 to say that I would find this useful and am currently using |
Yes, it will be a good feature to have. |
Great, I'll try it out and send a PR |
lizan
pushed a commit
that referenced
this issue
Sep 3, 2021
…17721) Support extraction of JWT from Cookies in JWT Extension Added "from_cookies" config directive to jwt_authn that enables JWT extraction from request cookies. Risk Level: low Testing: unit tests Docs Changes: Updated `docs/root/configuration/http/http_filters/jwt_authn_filter.rst` Release Notes: Updated `docs/root/version_history/current.rst` Platform Specific Features: None Fixes #17424 Signed-off-by: Shubham Patil <theshubhamp@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Title: Support JWT extraction from cookies in jwt_authn
Description:
It's common for JWTs to be sent as HttpOnly cookies from a browser.
jwt_authn
currently supports extraction from headers and query parameters but lacks the ability to work with cookies.It can be made to work with cookies by using a combination of these 3 filters as discussed on #7025's comment:
header_to_metatdata
-> metadata to header (using Lua ) ->jwt_authn
Adding first party support to extract from cookies will make doing this much easier.
The text was updated successfully, but these errors were encountered: