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

fix: Basic auth plugin should run in rewrite phase. #2905

Merged
merged 4 commits into from
Dec 1, 2020

Conversation

jenskeiner
Copy link
Contributor

What this PR does / why we need it:

The basic-auth plugin, as an authentication plugin, should run in the rewrite phase, not the access phase.

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

@jenskeiner
Copy link
Contributor Author

As per comment from @spacewander, added a check for the consumer handling; see #2859 (comment).

apisix/init.lua Outdated Show resolved Hide resolved
t/plugin/basic-auth.t Outdated Show resolved Hide resolved
@membphis membphis merged commit c140d0e into apache:master Dec 1, 2020
@membphis
Copy link
Member

membphis commented Dec 1, 2020

@jenskeiner many thx, merged right now

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.

4 participants