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

Making username and password as required fields for basic auth plugin #1248

Closed
wants to merge 1 commit into from

Conversation

sshniro
Copy link
Member

@sshniro sshniro commented Mar 13, 2020

Fix for #1244

@@ -123,7 +123,10 @@ passed
ngx.HTTP_PUT,
[[{
"plugins": {
"basic-auth": {}
"basic-auth": {
"username": "foo",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is wrong.

When a user requests, the authentication information is placed in an HTTP header.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @membphis , I'm a bit unclear, this test case is enabling basic auth plugin using admin api.

The test case 8 does the verification by adding the http header.


=== TEST 8: verify
--- request
GET /hello
--- more_headers
Authorization: Basic Zm9vOmJhcg==
--- response_body
hello world
--- no_error_log
[error]

I agree, in order to enable basic auth the admin does not have to send the same info again. Any suggestion how to tackle this would be helpful. I guess the scenario is the same with key-auth plugin as well.

@membphis
Copy link
Member

@sshniro I replied right now: #1244 (comment)

I think we can close this PR.

@membphis membphis closed this Mar 13, 2020
@sshniro
Copy link
Member Author

sshniro commented Mar 13, 2020

Thanks, that makes it clear.

@sshniro sshniro deleted the patch1 branch April 4, 2020 06:32
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.

2 participants