rukolahasser commented on issue #9328:
URL: https://github.com/apache/apisix/issues/9328#issuecomment-1512934696

   > Did you try it to see if it matches your expectation?
   > 
   > > what should I return to let limit-count know the consumer associated 
with the request?
   > 
   > 1. I do not understand clearly. When using the`forward-auth` plugin, you 
do not have control over what it returns; the response is dependent on the type 
of request you send and the authentication server.
   > 2. `limit-count` plugin gets executed before the `forward-auth` plugin as 
it has a higher priority. So you don't need to do anything to let `limit-count` 
know the correct consumer.
   > 
   > 
https://github.com/apache/apisix/blob/abcb49e019e7bbd5ceb7cba2c71ef4c4119bdc45/conf/config-default.yaml#L454
   > 
   > 
https://github.com/apache/apisix/blob/abcb49e019e7bbd5ceb7cba2c71ef4c4119bdc45/conf/config-default.yaml#L443
   
   Based on the `config-default.yaml`, `forward-auth` should have a higher 
priority, so it is executed before `limit-count`. 
   
   So if a request goes through `forward-auth` and reaches `limit-count`, how 
does `limit-count` know what consumer this request belongs to?


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