-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature: support consumer bind plugins. #544
Conversation
doc/architecture-design-cn.md
Outdated
@@ -369,20 +369,72 @@ APISIX 区别于其他 API 网关的一大特点是允许用户选择不同 Rout | |||
|
|||
如上图所示,作为 API 网关,需要知道 API Consumer(消费方)具体是谁,这样就可以对不同 API Consumer 配置不同规则。 | |||
|
|||
|字段|可选|说明| | |||
|---|----|----| | |||
|username|必选|Consumer 名称。| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
建议修改为 必选:是/否
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good, fix later
doc/architecture-design-cn.md
Outdated
如何对某个 Consumer 开启指定插件,可以看下面例子: | ||
|
||
```shell | ||
# 创建 Consumer ,指定认证插件 key-auth ,并开启特定插件 limit-count |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
应使用中文逗号
lua/apisix/plugin.lua
Outdated
|
||
|
||
function _M.merge_consumer_route(route_conf, consumer_conf) | ||
core.log.info("route conf : ", core.json.delay_encode(route_conf)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
建议统一 log
内容中的空格
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@juzhiyuan good catch, and please use English, thx
test
doc