You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2022/06/24 07:26:40 UTC
[dubbo-website] branch master updated: [fix] 优化权限控制 (#1141)
This is an automated email from the ASF dual-hosted git repository.
albumenj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-website.git
The following commit(s) were added to refs/heads/master by this push:
new 5578c90aa0 [fix] 优化权限控制 (#1141)
5578c90aa0 is described below
commit 5578c90aa05bdd6c720992af51fc41397384847f
Author: JIAN ZHONG <11...@qq.com>
AuthorDate: Fri Jun 24 15:26:35 2022 +0800
[fix] 优化权限控制 (#1141)
---
.../security/token-authorization.md | 19 ++++++++++++-------
1 file changed, 12 insertions(+), 7 deletions(-)
diff --git a/content/zh/docs3-building/java-sdk/advanced-features-and-usage/security/token-authorization.md b/content/zh/docs3-building/java-sdk/advanced-features-and-usage/security/token-authorization.md
index 6e28da88aa..a111e1fcec 100644
--- a/content/zh/docs3-building/java-sdk/advanced-features-and-usage/security/token-authorization.md
+++ b/content/zh/docs3-building/java-sdk/advanced-features-and-usage/security/token-authorization.md
@@ -3,15 +3,22 @@ type: docs
title: "权限控制"
linkTitle: "权限控制"
weight: 2
-description: "通过令牌验证在注册中心控制权限"
+description: "了解 dubbo3 权限控制的配置和使用"
---
-
-通过令牌验证在注册中心控制权限,以决定要不要下发令牌给消费者,可以防止消费者绕过注册中心访问提供者,另外通过注册中心可灵活改变授权方式,而不需修改或升级提供者
+## 特性说明:
+通过令牌验证在注册中心控制权限,以决定要不要下发令牌给消费者,
+可以防止消费者绕过注册中心访问提供者,
+另外通过注册中心可灵活改变授权方式,而不需修改或升级提供者。
![/user-guide/images/dubbo-token.jpg](/imgs/user/dubbo-token.jpg)
+### 设置类型:
+- 全局设置
+- 服务级别设置
-可以全局设置开启令牌验证:
+## 使用场景
+## 使用方式:
+全局设置开启令牌验证:
```xml
<!--随机token令牌,使用UUID生成-->
<dubbo:provider token="true" />
@@ -22,9 +29,7 @@ description: "通过令牌验证在注册中心控制权限"
<!--固定token令牌,相当于密码-->
<dubbo:provider token="123456" />
```
-
-也可在服务级别设置:
-
+服务级别设置:
```xml
<!--随机token令牌,使用UUID生成-->
<dubbo:service interface="com.foo.BarService" token="true" />