You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/10/16 12:04:50 UTC
[GitHub] [apisix] liuxiran opened a new issue #2439: can not config basic-auth plugin with ‘work with consumer object’ option
liuxiran opened a new issue #2439:
URL: https://github.com/apache/apisix/issues/2439
Please answer these questions before submitting your issue.
- Why do you submit this issue?
- [x] Question or discussion
- [x] Bug
- [ ] Requirements
- [ ] Feature or performance improvement
- [ ] Other
___
### Question
- What do you want to know?
What is the purpose of SELECT item?
![image](https://user-images.githubusercontent.com/2561857/93974652-ba4a8380-fda8-11ea-927c-66918099437a.png)
___
### Bug
- Which version of Apache APISIX Dashboard, OS, and Browser?
- What happened?
If possible, provide a way to reproduce the error.
1. config basic-auth plugin for a route
1. select `work with consumer object`, and then click [ok]button
1. action failed , and got an validate error in the console
![image](https://user-images.githubusercontent.com/2561857/93974925-2927dc80-fda9-11ea-9b1f-d0ee3d44feae.png)
___
### Requirement or improvement
- Please describe your requirements or improvement suggestions.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] liuxiran closed issue #2439: plugin(basic-auth): update the schema
Posted by GitBox <gi...@apache.org>.
liuxiran closed issue #2439:
URL: https://github.com/apache/apisix/issues/2439
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] liuxiran commented on issue #2439: plugin(basic-auth): update the schema
Posted by GitBox <gi...@apache.org>.
liuxiran commented on issue #2439:
URL: https://github.com/apache/apisix/issues/2439#issuecomment-729313435
The solution is the same with https://github.com/apache/apisix/issues/2441, it has already worked well with the apisix master branch and dashboard v2.0 branch.
close is now :)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] liuxiran edited a comment on issue #2439: can not config basic-auth plugin with ‘work with consumer object’ option
Posted by GitBox <gi...@apache.org>.
liuxiran edited a comment on issue #2439:
URL: https://github.com/apache/apisix/issues/2439#issuecomment-710003642
Part of https://github.com/apache/apisix/issues/2082
Accoring to the [basic-auth doc](https://github.com/apache/apisix/blob/master/doc/plugins/basic-auth.md) :
config basic-auth plugin only needs to config
username(required) and password(required)
### current schema of basic-auth:(update apisix to latest master branch)
```json
{
"additionalProperties": false,
"properties": {
"disable": {
"type": "boolean"
}
},
"title": "work with route or service object",
"type": "object"
}
```
with the plugin page looks:
![2020-10-16 19-51-55屏幕截图](https://user-images.githubusercontent.com/2561857/96255210-193a9b80-0fe9-11eb-8b7e-70e27ff14326.png)
---
### the expected schema should be:
```json
{
"type": "object",
"required": [
"username",
"password"
],
"properties": {
"username": {
"type": "string",
"title": "Username"
},
"password": {
"type": "string",
"title": "Password"
}
}
}
```
with the plugin page looks:
![2020-10-16 20-00-45屏幕截图](https://user-images.githubusercontent.com/2561857/96256000-7256ff00-0fea-11eb-8bbc-be7817c89730.png)
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org