Arjen10 opened a new issue, #13835:
URL: https://github.com/apache/apisix/issues/13835

   ### Current Behavior
   
   RFC 7617 says passwords can contain colons. but now, if the password has a 
colon, it fails to verify. And when the password is "john:key", you need to 
enter "john" to pass.
   
   ### Expected Behavior
   
   _No response_
   
   ### Error Logs
   
   _No response_
   
   ### Steps to Reproduce
   
   1、create consumers
   
   ```
   curl --location --request PUT 
'http://172.18.0.21:9180/apisix/admin/consumers' \
   --header 'Content-Type: application/json' \
   --header 'X-API-KEY: ••••••' \
   --data '{
       "username": "johndoe-colon",
       "plugins": {
           "basic-auth": {
               "username": "johndoe-colon",
                -- password contain colon
               "password": "john:key"
           }
       }
   }'
   ```
   
   2、enable plugin
   
   ```
   {
       "uri": "/common/adminDivision",
       "name": "adminDivision",
       "plugins": {
           "basic-auth": {}
       },
       "upstream": {
           "type": "roundrobin",
           "nodes": {
               "172.18.0.177:8080": 1
           }
       }
   }
   ```
   
   
   
   ### Environment
   
   - APISIX version (run `apisix version`): 3.17.0
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to