This is an automated email from the ASF dual-hosted git repository.

liujun 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 8367a9e  fix token global example (#882)
8367a9e is described below

commit 8367a9e12e0cd1703dfb4b3b8c870cf626149d1e
Author: haoyann <[email protected]>
AuthorDate: Mon Aug 2 16:01:11 2021 +0800

    fix token global example (#882)
---
 content/en/docs/v2.7/user/examples/token-authorization.md | 4 ++--
 content/zh/docs/advanced/token-authorization.md           | 4 ++--
 content/zh/docsv2.7/user/examples/token-authorization.md  | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/content/en/docs/v2.7/user/examples/token-authorization.md 
b/content/en/docs/v2.7/user/examples/token-authorization.md
index 71235be..d968f42 100644
--- a/content/en/docs/v2.7/user/examples/token-authorization.md
+++ b/content/en/docs/v2.7/user/examples/token-authorization.md
@@ -15,13 +15,13 @@ You can turn on token authentication globally:
 
 ```xml
 <!--Random token , generated using a UUID-->
-<dubbo:provider interface="com.foo.BarService" token="true" />
+<dubbo:provider token="true" />
 ```
 or
 
 ```xml
 <!--Fixed token, equivalent to the password-->
-<dubbo:provider interface="com.foo.BarService" token="123456" />
+<dubbo:provider token="123456" />
 ```
 
 Of course can turn on token authentication at service level:
diff --git a/content/zh/docs/advanced/token-authorization.md 
b/content/zh/docs/advanced/token-authorization.md
index 642aed2..3e74670 100644
--- a/content/zh/docs/advanced/token-authorization.md
+++ b/content/zh/docs/advanced/token-authorization.md
@@ -14,13 +14,13 @@ description: "通过令牌验证在注册中心控制权限"
 
 ```xml
 <!--随机token令牌,使用UUID生成-->
-<dubbo:provider interface="com.foo.BarService" token="true" />
+<dubbo:provider token="true" />
 ```
 或
 
 ```xml
 <!--固定token令牌,相当于密码-->
-<dubbo:provider interface="com.foo.BarService" token="123456" />
+<dubbo:provider token="123456" />
 ```
 
 也可在服务级别设置:
diff --git a/content/zh/docsv2.7/user/examples/token-authorization.md 
b/content/zh/docsv2.7/user/examples/token-authorization.md
index 642aed2..3e74670 100644
--- a/content/zh/docsv2.7/user/examples/token-authorization.md
+++ b/content/zh/docsv2.7/user/examples/token-authorization.md
@@ -14,13 +14,13 @@ description: "通过令牌验证在注册中心控制权限"
 
 ```xml
 <!--随机token令牌,使用UUID生成-->
-<dubbo:provider interface="com.foo.BarService" token="true" />
+<dubbo:provider token="true" />
 ```
 或
 
 ```xml
 <!--固定token令牌,相当于密码-->
-<dubbo:provider interface="com.foo.BarService" token="123456" />
+<dubbo:provider token="123456" />
 ```
 
 也可在服务级别设置:

Reply via email to