lingliy commented on issue #9287:
URL: https://github.com/apache/apisix/issues/9287#issuecomment-1504419046

   
    incorrect response
   ```
   [root@centos7-17 apisix]# curl -v -H"Authorization: 
V1#test10#eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MjAsInVzZXJuYW1lIjoiZm9vIiwibWFuYWdlciI6IiIsInZlcnNpb24iOjIsImFwcGlkIjoidGVzdDEwIiwiaWF0IjoxNjgxMTk2NjczLCJleHAiOjE2ODM3ODg2NzN9.9wvUFijW3rMRU6bcL9eQDvPpWYRqfswxQ3QCYb1VUY0"
 -H"Host: example1.com" http://127.0.0.1:9080/
   * About to connect() to 127.0.0.1 port 9080 (#0)
   *   Trying 127.0.0.1...
   * Connected to 127.0.0.1 (127.0.0.1) port 9080 (#0)
   > GET / HTTP/1.1
   > User-Agent: curl/7.29.0
   > Accept: */*
   > Authorization: 
V1#test10#eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MjAsInVzZXJuYW1lIjoiZm9vIiwibWFuYWdlciI6IiIsInZlcnNpb24iOjIsImFwcGlkIjoidGVzdDEwIiwiaWF0IjoxNjgxMTk2NjczLCJleHAiOjE2ODM3ODg2NzN9.9wvUFijW3rMRU6bcL9eQDvPpWYRqfswxQ3QCYb1VUY0
   > Host: example1.com
   > 
   < HTTP/1.1 200 OK
   < Content-Type: text/html; charset=utf-8
   < Content-Length: 51
   < Connection: keep-alive
   < X-UserId: 20
   < X-Username: foo
   < X-Nickname: testauth
   < Date: Tue, 11 Apr 2023 07:21:00 GMT
   < Last-Modified: Wed, 29 Mar 2023 03:36:13 GMT
   < ETag: "6423b22d-33"
   < Accept-Ranges: bytes
   < Server: APISIX/3.2.0
   < 
   <html>
   <body>
   <h1>hello world</h1>
   </body>
   </html>
   * Connection #0 to host 127.0.0.1 left intact
   ```
   
   I have looked at the wolf-rbac plugins source code and found that 
consumer.attach_consumer  function was not used. Other auth type plugins use 
this function, so it is not actually associated with other plugins under the 
consumer. But since I am not that familiar with apisix and am not sure if this 
understanding is correct, I did this test and found that consumer used 
wolf-rbac auth, consumer other plugins not used


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