Skip to content

Commit 97e81b6

Browse files
committed
lint
1 parent aad444c commit 97e81b6

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

docs/en/latest/plugins/jwt-auth.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ curl -i "http://127.0.0.1:9080/get" -H "jwt-auth-header: ${jwt_token}"
275275

276276
You should receive an `HTTP/1.1 200 OK` response similar to the following:
277277

278-
```text
278+
```text
279279
{
280280
"args": {},
281281
"headers": {
@@ -421,7 +421,7 @@ curl -i "http://127.0.0.1:9080/get" -H "Authorization: ${jwt_token}"
421421

422422
You should receive an `HTTP/1.1 200 OK` response similar to the following:
423423

424-
```text
424+
```text
425425
{
426426
"args": {},
427427
"headers": {

docs/zh/latest/plugins/jwt-auth.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Route 端:
6060
| header | string || authorization | 设置我们从哪个 header 获取 token。 |
6161
| query | string || jwt | 设置我们从哪个 query string 获取 token,优先级低于 header。 |
6262
| cookie | string || jwt | 设置我们从哪个 cookie 获取 token,优先级低于 query。 |
63-
| hide_credentials | boolean || false | 如果为 true ,则不要将 header、query 或带有 JWT 的 cookie 传递给上游服务。 |
63+
| hide_credentials | boolean || false | 如果为 true,则不要将 header、query 或带有 JWT 的 cookie 传递给上游服务。 |
6464
| key_claim_name | string || key | 包含用户密钥(对应消费者的密钥属性)的 JWT 声明的名称。|
6565
| anonymous_consumer | string || false | 匿名消费者名称。如果已配置,则允许匿名用户绕过身份验证。 |
6666

@@ -244,7 +244,7 @@ curl "http://127.0.0.1:9180/apisix/admin/routes" -X PUT \
244244

245245
*__Algorithm__ 下拉菜单中选择 __HS256__
246246
*__Verify Signature__ 部分中的密钥更新为 `jack-hs256-secret`
247-
* 使用消费者密钥 `jack-key` 更新有效 payload ;并在 UNIX 时间戳中添加 `exp``nbf`
247+
* 使用消费者密钥 `jack-key` 更新有效 payload;并在 UNIX 时间戳中添加 `exp``nbf`
248248

249249
您的有效 payload 应类似于以下内容:
250250

@@ -271,7 +271,7 @@ curl -i "http://127.0.0.1:9080/get" -H "jwt-auth-header: ${jwt_token}"
271271

272272
您应该收到类似于以下内容的 `HTTP/1.1 200 OK` 响应:
273273

274-
```text
274+
```text
275275
{
276276
"args": {},
277277
"headers": {
@@ -417,7 +417,7 @@ curl -i "http://127.0.0.1:9080/get" -H "Authorization: ${jwt_token}"
417417

418418
您应该收到类似于以下内容的 `HTTP/1.1 200 OK` 响应:
419419

420-
```text
420+
```text
421421
{
422422
"args": {},
423423
"headers": {
@@ -569,7 +569,7 @@ curl -i "http://127.0.0.1:9080/get" -H "Authorization: ${jwt_token}"
569569
}
570570
```
571571

572-
### 使用RS256算法签署JWT
572+
### 使用 RS256 算法签署 JWT
573573

574574
以下示例演示了在实施 JWT 进行消费者身份验证时如何使用非对称算法(例如 RS256)来签名和验证 JWT。您将使用 [openssl](https://openssl-library.org/source/) 生成 RSA 密钥对,并使用 [JWT.io](https://jwt.io/#debugger-io) 生成 JWT,以更好地了解 JWT 的组成。
575575

@@ -815,7 +815,7 @@ curl "http://127.0.0.1:9180/apisix/admin/consumers/jack/credentials" -X PUT \
815815
}'
816816
```
817817

818-
创建匿名用户 `anonymous`,并配置 `limit-count` 插件,以允许 30 秒内配额为1
818+
创建匿名用户 `anonymous`,并配置 `limit-count` 插件,以允许 30 秒内配额为 1
819819

820820
```shell
821821
curl "http://127.0.0.1:9180/apisix/admin/consumers" -X PUT \

0 commit comments

Comments
 (0)