Skip to content
Permalink
Browse files
fix token global example (#882)
  • Loading branch information
haoyann committed Aug 2, 2021
1 parent 12893d4 commit 8367a9e12e0cd1703dfb4b3b8c870cf626149d1e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
@@ -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:
@@ -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" />
```

也可在服务级别设置:
@@ -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" />
```

也可在服务级别设置:

0 comments on commit 8367a9e

Please sign in to comment.