You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by sp...@apache.org on 2021/04/12 11:12:10 UTC
[apisix] branch master updated: docs: Improve the jwt-auth docs
(#4030)
This is an automated email from the ASF dual-hosted git repository.
spacewander 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 d670887 docs: Improve the jwt-auth docs (#4030)
d670887 is described below
commit d6708874e07d2e800a89e396b76f8312497cd244
Author: Yuelin Zheng <22...@qq.com>
AuthorDate: Mon Apr 12 19:12:03 2021 +0800
docs: Improve the jwt-auth docs (#4030)
---
docs/assets/images/plugin/jwt-auth-3.png | Bin 0 -> 298562 bytes
docs/en/latest/plugins/jwt-auth.md | 20 +++++++++++++-------
docs/zh/latest/plugins/jwt-auth.md | 18 ++++++++++++------
3 files changed, 25 insertions(+), 13 deletions(-)
diff --git a/docs/assets/images/plugin/jwt-auth-3.png b/docs/assets/images/plugin/jwt-auth-3.png
new file mode 100644
index 0000000..50bc494
Binary files /dev/null and b/docs/assets/images/plugin/jwt-auth-3.png differ
diff --git a/docs/en/latest/plugins/jwt-auth.md b/docs/en/latest/plugins/jwt-auth.md
index dca5d2a..25e103c 100644
--- a/docs/en/latest/plugins/jwt-auth.md
+++ b/docs/en/latest/plugins/jwt-auth.md
@@ -88,13 +88,6 @@ curl http://127.0.0.1:9080/apisix/admin/consumers -H 'X-API-KEY: edd1c9f034335f1
}'
```
-you can visit Dashboard `http://127.0.0.1:9080/apisix/dashboard/` and add a Consumer through the web console:
-
-
-
-then add jwt-auth plugin in the Consumer page:
-
-
2. add a Route or add a Service, and enable the `jwt-auth` plugin
```shell
@@ -114,6 +107,19 @@ curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f13
}'
```
+You can use [APISIX Dashboard](https://github.com/apache/apisix-dashboard) to complete the above operations through the web console.
+
+1. Add a Consumer through the web console:
+
+
+
+then add jwt-auth plugin in the Consumer page:
+
+
+2. Create a Route or Service object and enable the jwt-auth plugin:
+
+
+
## Test Plugin
#### get the token in `jwt-auth` plugin:
diff --git a/docs/zh/latest/plugins/jwt-auth.md b/docs/zh/latest/plugins/jwt-auth.md
index 176de68..6d21f78 100644
--- a/docs/zh/latest/plugins/jwt-auth.md
+++ b/docs/zh/latest/plugins/jwt-auth.md
@@ -88,12 +88,6 @@ curl http://127.0.0.1:9080/apisix/admin/consumers -H 'X-API-KEY: edd1c9f034335f1
}'
```
-你可以使用浏览器打开 dashboard:`http://127.0.0.1:9080/apisix/dashboard/`,通过 web 界面来完成上面的操作,先增加一个 consumer:
-
-
-然后在 consumer 页面中添加 jwt-auth 插件:
-
-
2. 创建 Route 或 Service 对象,并开启 `jwt-auth` 插件。
```shell
@@ -113,6 +107,18 @@ curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f13
}'
```
+你可以使用 [APISIX Dashboard](https://github.com/apache/apisix-dashboard),通过 web 界面来完成上面的操作。
+
+1. 先增加一个 consumer:
+
+
+然后在 consumer 页面中添加 jwt-auth 插件:
+
+
+2. 创建 Route 或 Service 对象,并开启 jwt-auth 插件:
+
+
+
## 测试插件
#### 首先进行登录获取 `jwt-auth` token: