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/09/23 06:30:00 UTC

[GitHub] [apisix-dashboard] liuxiran opened a new issue #507: can not config basic-auth plugin with ‘work with consumer object’ option

liuxiran opened a new issue #507:
URL: https://github.com/apache/apisix-dashboard/issues/507


   Please answer these questions before submitting your issue.
   
   - Why do you submit this issue?
   - [ ] Question or discussion
   - [ ] 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-dashboard] liuxiran commented on issue #507: can not config basic-auth plugin with ‘work with consumer object’ option

Posted by GitBox <gi...@apache.org>.
liuxiran commented on issue #507:
URL: https://github.com/apache/apisix-dashboard/issues/507#issuecomment-710003642


   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)
   
   ### now the 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



[GitHub] [apisix-dashboard] liuxiran edited a comment on issue #507: can not config basic-auth plugin with ‘work with consumer object’ option

Posted by GitBox <gi...@apache.org>.
liuxiran edited a comment on issue #507:
URL: https://github.com/apache/apisix-dashboard/issues/507#issuecomment-710003642


   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)
   
   ### now the 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