1
0
mirror of synced 2026-05-22 14:43:15 +00:00

docs: 补全 1.40.0 版本更新文档

This commit is contained in:
click33
2025-01-31 06:00:43 +08:00
parent e53802e9f7
commit 26302877d0
5 changed files with 121 additions and 22 deletions
+17 -1
View File
@@ -257,7 +257,7 @@ http://sa-oauth-server.com:8000/oauth2/token?grant_type=authorization_code&clien
测试完毕
### 5、运行官方示例
### 5、运行官方示例
以上代码只是简单模拟了一下OAuth2.0的授权流程,现在,我们运行一下官方示例,里面有制作好的UI界面
- OAuth2-Server端: `/sa-token-demo/sa-token-demo-oauth2/sa-token-demo-oauth2-server/` [源码链接](https://gitee.com/dromara/sa-token/tree/master/sa-token-demo/sa-token-demo-oauth2/sa-token-demo-oauth2-server) <br/>
@@ -270,3 +270,19 @@ http://sa-oauth-server.com:8000/oauth2/token?grant_type=authorization_code&clien
如图,可以针对OAuth2.0四种模式进行详细测试
### 6、OAuth2 前端测试页
OAuth2 前端测试页:
`/sa-token-demo/sa-token-demo-oauth2/sa-token-demo-oauth2-client-h5/`
[源码链接](https://gitee.com/dromara/sa-token/tree/master/sa-token-demo/sa-token-demo-oauth2/sa-token-demo-oauth2-client-h5) <br/>
此示例允许你在前端自由配置 OAuth-Client 端所需的各个参数,方便对 OAuth2 四种模式的测试。
![sa-oauth2-client-index](https://oss.dev33.cn/sa-token/doc/oauth2-new/sa-oauth2-client-test-h5-page.png 's-w-sh')
<p><a class="case-btn case-btn-video" href="https://www.bilibili.com/video/BV13LSMYzEmE/" target="_blank">
参考视频:OAuth2 四种模式 前端测试页
</a></p>