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

   ### Description
   
   建议“就近原则”,当开启了全局鉴权插件后,可在某个路由上设置不启用该插件,例如:
   1、启用全局鉴权插件:forward-auth;
   2、APISIX有3个路由,此时都需要鉴权才能访问上游资源;
   3、问题:有一个路由不需要鉴权,能不能单独配置不启用“forward-auth”鉴权?其他两个路由还继续走全局鉴权;
   
   在网上找了三种方法,在路由上设置好后,均不生效:
   `
   ```shell
   方法一:
   "forward-auth": {
                     "disable": true
                     "uri": "http://local:8082/paas/v1/auc/auth";
                   },
   方法二:
       "forward-auth": {
           "_meta": {
               "disable": true
           },
           "uri": "http://local:8082/paas/v1/auc/auth";
       },
   
   方法三:
       "disable": ["forward-auth"],  
   ```
   `
   
   


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