cll1778890283 commented on issue #12753: URL: https://github.com/apache/apisix/issues/12753#issuecomment-3547985794
> You may also choose not to enable plugins on consumers, depending on your plugin functionality and use case. Generally, for authentication plugins like key-auth, we need to bind them to consumers and enable them on routes. This allows us to identify which consumer requested the API in subsequent processes and configure corresponding policies for different consumers, such as rate limiting. > > Could you describe your business scenario and the role of the plugin? Hello, I just referenced key auth and customized an authentication plugin. The request header needs to carry the value corresponding to the key in order for the request to pass. Then the router also enabled this plugin, and the consumer configured the corresponding authentication plugin. Finally, it was found that the rewrite method below printed the log twice. If there is a screenshot of the problem, please review it in detail -- 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]
