Skip to content
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

chore(jwt-auth): get JWT by ctx.var.cookie_jwt instead of resty.cookie #5947

Merged
merged 3 commits into from
Dec 30, 2021

Conversation

tzssangglass
Copy link
Member

…ookie

Signed-off-by: tzssangglass [email protected]

What this PR does / why we need it:

Pre-submission checklist:

  • Did you explain what problem does this PR solve? Or what new features have been added?
  • Have you added corresponding test cases?
  • Have you modified the corresponding document?
  • Is this PR backward compatible? If it is not backward compatible, please discuss on the mailing list first

@tzssangglass tzssangglass changed the title chore(jwt-auth): get JWT by ctx.var.cookie_jwt instead of use resty.c… chore(jwt-auth): get JWT by ctx.var.cookie_jwt instead of resty.cookie Dec 28, 2021
@tokers
Copy link
Contributor

tokers commented Dec 29, 2021

@tzssangglass Could you describe the reason for this or add the corresponding issue link?

@tzssangglass
Copy link
Member Author

tzssangglass commented Dec 29, 2021

@tzssangglass Could you describe the reason for this or add the corresponding issue link?

ok, inspired by review this PR is the comments seen: #5727 (comment)

It is recommended to use ctx.var.cookie_* in the plugin to get cookies

Signed-off-by: tzssangglass <[email protected]>
apisix/plugins/jwt-auth.lua Outdated Show resolved Hide resolved
Signed-off-by: tzssangglass <[email protected]>
@tzssangglass tzssangglass requested a review from tokers December 30, 2021 01:19
@spacewander spacewander merged commit 7045f97 into apache:master Dec 30, 2021
@tzssangglass tzssangglass deleted the jwt_cookie branch January 24, 2022 02:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants