Skip to content

Commit

Permalink
docs: jwt black list
Browse files Browse the repository at this point in the history
  • Loading branch information
suyuan32 committed Oct 21, 2022
1 parent 8a93548 commit df6740c
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 4 deletions.
3 changes: 2 additions & 1 deletion README.En.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ It can help you to develop a microservice back-end management core in a short ti
| Fully support K8s | Finished |
| Service Monitor | Finished |
| Log collecting | Finished |
| JWT blacklist | In progress |
| JWT blacklist | Finished |
| Job Schedule | In progress |

### The use of consul for service registration discovery in the early stage of the project is mainly to adapt to low-configuration servers. In the near future, the deployment process of K8s will be mainly optimized, and the project will mainly use K8s for deployment in the future.

Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ Simple Admin 是一个开箱即用的分布式微服务后端管理系统,基
| 全面支持 K8s | 已完成 |
| 服务监控 | 已完成 |
| 日志收集 | 已完成 |
| JWT黑名单 | 进行中 |
| JWT黑名单 | 已完成 |
| 定时任务 | 进行中 |

## 预览

Expand Down
Binary file added docs/simple-admin/assets/block_token_en.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/simple-admin/assets/block_token_zh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/simple-admin/assets/force_log_out_en.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/simple-admin/assets/force_log_out_zh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions docs/simple-admin/en/_sidebar.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,14 @@
* [Develop Frontend](simple-admin/en/docs/web_develop_example.md)
* [API Service](simple-admin/en/docs/api_example.md)
* [RPC Service](simple-admin/en/docs/rpc_example.md)
* [Docker](simple-admin/en/docs/deploy_docker.md)
* Tools
* [Validator](/simple-admin/en/docs/validator.md)
* [Consul](/simple-admin/en/docs/consul.md)
* [Swagger](simple-admin/en/docs/swagger.md)
* [GORM](simple-admin/en/docs/gorm.md)
* [Authorization](simple-admin/en/docs/authorization.md)
* [Error Handling](simple-admin/en/docs/error_handling.md)
* [Oauth](simple-admin/en/docs/oauth.md)
* [Service Monitor](simple-admin/en/docs/prometheus.md)
* [Log Collecting](simple-admin/en/docs/log-collection.md)
* [JWT Black List](simple-admin/en/docs/jwt_blacklist.md)
* [FAQ](simple-admin/en/docs/FAQ.md)
12 changes: 12 additions & 0 deletions docs/simple-admin/en/docs/jwt_blacklist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# JWT black list

> System will insert token into tokens table automatically, admin can block token or force logging out
> Block token
![pic](../../assets/block_token_en.png)
> Force logging out
![pic](../../assets/force_log_out_en.png)

> Notice: only support accuracy search
1 change: 1 addition & 0 deletions docs/simple-admin/zh-cn/_sidebar.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@
* [第三方登录](simple-admin/zh-cn/docs/oauth.md)
* [服务监控](simple-admin/zh-cn/docs/prometheus.md)
* [日志收集](simple-admin/zh-cn/docs/log-collection.md)
* [JWT黑名单](simple-admin/zh-cn/docs/jwt_blacklist.md)
* [常见问题](simple-admin/zh-cn/docs/FAQ.md)
12 changes: 12 additions & 0 deletions docs/simple-admin/zh-cn/docs/jwt_blacklist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# JWT 黑名单

> 用户在登陆后会自动向token表写入token记录, 管理员可以从后台禁用token或者使用户强制登出
> 停用 token
![pic](../../assets/block_token_zh.png)
> 强制登出
![pic](../../assets/force_log_out_zh.png)

> 注意: 只支持精确搜索用户

0 comments on commit df6740c

Please sign in to comment.