You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/12/24 06:57:59 UTC

[GitHub] [apisix] ShaoZeMing commented on issue #3115: 类似网关指定的路由或服务请求一个指定服务地址,根据地址定义的参数控制是否通过,并可以将部分参数传递下游?

ShaoZeMing commented on issue #3115:
URL: https://github.com/apache/apisix/issues/3115#issuecomment-750777535


   > > ### Issue description
   > > 我想实现一个网关自定义鉴权的功能,很类似rbac的拓展,但我们并不是用的这套rbac进行认证的,我想请教一下,是否有拓展能个填写自定义的请求地址,可以根据目标服务返回状态判断是否通行,并且可以将访问的数据携带下游服务中。如下图示意:
   > > ![image](https://user-images.githubusercontent.com/19376576/103063831-70627b00-45ed-11eb-8d12-f72e79325b38.png)
   > > ### Environment
   > > 
   > > * apisix version (cmd: `apisix version`):
   > > * OS: (cmd: `uname -a`)
   > > * OpenResty / Nginx version: (cmd: `nginx -V` or `openresty -V`)
   > 
   > I have do the some similar feature, you should add two plugins, one is for define the hook contract , and when the hook api response, you can restore the message in context. another is the combine plugin which you can combine the message and the request body with some rules, and then you can set the request to the upstream.
   
   谢谢提醒,想观摩观摩,你的开源吗?


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

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