This is an automated email from the ASF dual-hosted git repository.
monkeydluffy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/master by this push:
new edfdeba7e docs: add auth plugins that work with consumers to the
consumer doc (#10214)
edfdeba7e is described below
commit edfdeba7e0e5538ce8866c15b1666172eb4a6f77
Author: Traky Deng <[email protected]>
AuthorDate: Mon Sep 18 09:04:54 2023 +0800
docs: add auth plugins that work with consumers to the consumer doc (#10214)
---
docs/en/latest/terminology/consumer.md | 2 ++
docs/zh/latest/terminology/consumer.md | 4 ++++
2 files changed, 6 insertions(+)
diff --git a/docs/en/latest/terminology/consumer.md
b/docs/en/latest/terminology/consumer.md
index 0b2a1ad3e..591396c4f 100644
--- a/docs/en/latest/terminology/consumer.md
+++ b/docs/en/latest/terminology/consumer.md
@@ -60,6 +60,8 @@ The process of identifying a Consumer in APISIX is described
below:
Consumers are useful when you have different consumers requesting the same API
and you need to execute different Plugin and Upstream configurations based on
the consumer. These need to be used in conjunction with the user authentication
system.
+Authentcation plugins that can be configured with a Consumer include
`basic-auth`, `hmac-auth`, `jwt-auth`, `key-auth`, `ldap-auth`, and `wolf-rbac`.
+
Refer to the documentation for the [key-auth](../plugins/key-auth.md)
authentication Plugin to further understand the concept of a Consumer.
:::note
diff --git a/docs/zh/latest/terminology/consumer.md
b/docs/zh/latest/terminology/consumer.md
index cb869a221..7892b1b87 100644
--- a/docs/zh/latest/terminology/consumer.md
+++ b/docs/zh/latest/terminology/consumer.md
@@ -56,6 +56,10 @@ Consumer 是某类服务的消费者,需要与用户认证配合才可以使
2. 获取 consumer_name:通过授权认证,即可自然获取到对应的 Consumer name,它是 Consumer 对象的唯一识别标识;
3. 获取 Consumer 上绑定的 Plugin 或 Upstream 信息:完成对不同 Consumer 做不同配置的效果。
+当有不同的使用者请求相同的 API,并且需要根据使用者执行不同的插件和上游配置时,使用 Consumer 是非常合适的。需要与用户身份验证系统结合使用。
+
+目前,可以与 Consumer 配置的身份验证插件包括 `basic-auth`
、`hmac-auth`、`jwt-auth`、`key-auth`、`ldap-auth` 和 `wolf-rbac`。
+
你可以参考 [key-auth](../plugins/key-auth.md) 认证授权插件的调用逻辑,进一步理解 Consumer 概念和使用。
:::note 注意