You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "shreemaan-abhishek (via GitHub)" <gi...@apache.org> on 2023/04/18 11:32:52 UTC

[GitHub] [apisix] shreemaan-abhishek commented on issue #9328: help request: How do I use forward-auth and limit-count plugins together?

shreemaan-abhishek commented on issue #9328:
URL: https://github.com/apache/apisix/issues/9328#issuecomment-1512918998

   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


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org