diff --git a/README.en-US.md b/README.en-US.md
index e35ffb6b61205e93e40396bf3a2487b19b129f9a..255e828f9fff1691de08a37a96c745c8707e03b3 100644
--- a/README.en-US.md
+++ b/README.en-US.md
@@ -1,12 +1,12 @@
-
+
Login, so easy.
-
+
@@ -15,9 +15,9 @@
-
+
-
+
@@ -71,7 +71,7 @@
- 查看更多
+ 查看更多
-------------------------------------------------------------------------------
@@ -81,7 +81,7 @@
`JustAuth`, as you see, It is just a Java library of third-party authorized login, It's smaller and easier to use. JustAuth is the best third-party login tool written in JAVA.
Source Code:[gitee](https://gitee.com/yadong.zhang/JustAuth) | [github](https://github.com/zhangyd-c/JustAuth)
-Docs:[Reference Doc](https://docs.justauth.whnb.wang)
+Docs:[Reference Doc](https://justauth.wiki)
## Features
@@ -97,7 +97,7 @@ These artifacts are available from Maven Central:
me.zhyd.oauth
JustAuth
- 1.15.5
+ 1.15.6
```
- Using JustAuth
@@ -162,11 +162,11 @@ I look forward to your joining us.
## Contributors
-[contributors](https://docs.justauth.whnb.wang/#/contributors)
+[contributors](https://justauth.wiki/#/contributors)
## Change Logs
-[CHANGELOGS](https://docs.justauth.whnb.wang/#/update)
+[CHANGELOGS](https://justauth.wiki/#/update)
## Recommend
diff --git a/README.md b/README.md
index c3760d19ee35c245ce93c61f19d4fade0ec06c5b..8f5dfee3f64cbedc122f1d24713f247896f53de6 100644
--- a/README.md
+++ b/README.md
@@ -1,12 +1,12 @@
-
+
Login, so easy.
-
+
@@ -15,9 +15,9 @@
-
+
-
+
@@ -71,7 +71,7 @@
- 查看更多
+ 查看更多
-------------------------------------------------------------------------------
@@ -80,7 +80,7 @@
JustAuth,如你所见,它仅仅是一个**第三方授权登录**的**工具类库**,它可以让我们脱离繁琐的第三方登录SDK,让登录变得**So easy!**
项目开源地址:[gitee](https://gitee.com/yadong.zhang/JustAuth) | [github](https://github.com/zhangyd-c/JustAuth)
-项目文档:[参考文档](https://docs.justauth.whnb.wang)
+项目文档:[参考文档](https://justauth.wiki)
## 特点
@@ -96,7 +96,7 @@ JustAuth,如你所见,它仅仅是一个**第三方授权登录**的**工具
me.zhyd.oauth
JustAuth
- 1.15.5
+ 1.15.6
```
- 调用api
@@ -163,11 +163,11 @@ authRequest.login(callback);
## 贡献者名单
-[contributors](https://docs.justauth.whnb.wang/#/contributors)
+[contributors](https://justauth.wiki/#/contributors)
## 更新记录
-[CHANGELOGS](https://docs.justauth.whnb.wang/#/update)
+[CHANGELOGS](https://justauth.wiki/#/update)
## 致谢
@@ -185,7 +185,7 @@ authRequest.login(callback);
- `spring-boot-demo` 深度学习并实战 spring boot 的项目: [https://github.com/xkcoding/spring-boot-demo](https://github.com/xkcoding/spring-boot-demo)
- `mica` SpringBoot 微服务高效开发工具集: [https://github.com/lets-mica/mica](https://github.com/lets-mica/mica)
- `pig` 宇宙最强微服务认证授权脚手架(架构师必备): [https://gitee.com/log4j/pig](https://gitee.com/log4j/pig)
-- `SpringBlade` 完整的线上解决方案(企业开发必备): https://gitee.com/smallc/SpringBlade
+- `SpringBlade` 完整的线上解决方案(企业开发必备): [https://gitee.com/smallc/SpringBlade](https://gitee.com/smallc/SpringBlade)
- `MaxKey` 马克思的钥匙,寓意是最大钥匙,是用户单点登录认证系统(Sigle Sign On System),OAuth 2.0/OpenID Connect、SAML 2.0、JWT、CAS等标准化的开放协议,使用JustAuth集成OAuth第三方认证。: [https://shimingxy.github.io/MaxKey/](https://shimingxy.github.io/MaxKey/)
## 关注&交流
diff --git a/bin/version.txt b/bin/version.txt
index d32434904bcb301ec02113568dfb2863a8290327..04cc99945d2e190b24fa4b13f840968c07eae23f 100644
--- a/bin/version.txt
+++ b/bin/version.txt
@@ -1 +1 @@
-1.15.5
+1.15.6
diff --git a/docs/Q&A.md b/docs/Q&A.md
deleted file mode 100644
index 75316d52f84e5782a5eddb80418cedbbe031864a..0000000000000000000000000000000000000000
--- a/docs/Q&A.md
+++ /dev/null
@@ -1,164 +0,0 @@
-## 1.项目编译报错
- **问题描述**
-
-在使用JustAuth时,`AuthConfig.builder()`报错,提示没有`builder()`方法
-
- **解决方案:**
-
-安装完lombok插件即可
-
-[eclipse安装lombok](https://www.zhyd.me/article/61)
-
- **idea安装lombok:** file->settings->plugins->Browse Repositories->输入`lombok`,点击搜索->选中lombok点击install->安装完成后重启idea
-
- **进阶版问题:**
-idea中安装完lombok并重启idea之后,启动项目仍然报错:
-
- **解决办法**
-
-默认是eclipse 选择javac就可以了
-
-
-## 2.~~升级到1.8.0后如何启用state?~~
-
-~~在原api使用方法的基础上,为config追加一个state即可。~~
-```
-AuthRequest authRequest = new AuthGiteeRequest(AuthConfig.builder()
- .clientId("clientId")
- .clientSecret("clientSecret")
- .redirectUri("redirectUri")
- .state("state") // 就是这儿
- .build());
-```
-
-## 3.~~升级到1.8.0后login方法报错?~~
-
-~~这是因为1.8.0版本中新增了[AuthCallback](https://gitee.com/yadong.zhang/JustAuth/blob/master/src/main/java/me/zhyd/oauth/model/AuthCallback.java)类,这个类封装了所有可能的回调参数。目前包含以下三个参数:~~
-- ~~`code`: 访问AuthorizeUrl后回调时带的参数code,用来换取token~~
-- ~~`auth_code`: 支付宝授权登陆时不会返回code而是返回`auth_code`参数~~
-- ~~`state`: 访问AuthorizeUrl后回调时带的参数state,用于和请求AuthorizeUrl前的state比较,防止CSRF攻击~~
-
-~~1.8.0版本之后的api,可以直接用AuthCallback类作为回调方法的入参,比如:~~
-```
-@RequestMapping("/callback/{source}")
-public Object login(@PathVariable("source") String source, AuthCallback callback) {
- System.out.println("进入callback:" + source + " callback params:" + JSONObject.toJSONString(callback));
- AuthRequest authRequest = getAuthRequest(source);
- AuthResponse response = authRequest.login(callback);
- System.out.println(JSONObject.toJSONString(response));
- return response;
-}
-```
- ~~_代码截取自_ :https://github.com/justauth/JustAuth-demo~~
-
-## 4.~~升级到1.8.0后对于state参数有什么特殊要求吗?~~
-
-~~理论上没有,stata只是用来保持会话状态,因为http协议的无状态性,从授权到回调,无法感知具体是哪个用户触发的。所以可以使用state作为校验。注:state参数每次完整的授权链中只可用一次!(也是为了防止不必要的危险)~~
-
-~~作者建议state命名格式如下:~~
-- ~~授权登录:`{source}_{ip}_{random}`~~
-- ~~账号绑定:`{source}_{userId}_{ip}_{random}`~~
-
-~~其中`source`表示授权平台,可以直接去JustAuth中的source,`ip`为当前用户的ip(部分情况可能不适用),`random`为随机字符串,`userId`为当前登录用户的id。~~
-
-~~注:`authorize`和`login`(不是指回调传回的`state`,而是声明`request`时传入的`state`)中传的`state`务必保证一致~~
-
-## 5.升级到1.9.3+版本后编译失败
-
-主要明显的就是`IpUtils.getIp`和request的`.state`报错。
-
-这是因为从`v1.9.3`版本开始,对项目进行了一些优化,具体优化内容参考:[v1.9.3](https://gitee.com/yadong.zhang/JustAuth/releases/v1.9.3)和[v1.9.4](https://gitee.com/yadong.zhang/JustAuth/releases/v1.9.4)。
-
-新版本的使用方式,参考[JustAuth-demo](https://github.com/justauth/JustAuth-demo/blob/master/src/main/java/me/zhyd/justauth/RestAuthController.java)
-```
-@RequestMapping("/render/{source}")
-public void renderAuth(@PathVariable("source") String source, HttpServletResponse response) throws IOException {
- AuthRequest authRequest = getAuthRequest(source);
- String authorizeUrl = authRequest.authorize(AuthStateUtils.createState());
- response.sendRedirect(authorizeUrl);
-}
-@RequestMapping("/callback/{source}")
-public Object login(@PathVariable("source") String source, AuthCallback callback) {
- AuthRequest authRequest = getAuthRequest(source);
- AuthResponse response = authRequest.login(callback);
- return response;
-}
-```
-
-## 6.升级到最新版本后为什么支付宝登录不能用了?
-
-在升级到新版后,使用支付宝登录会提示`ClassNotFoundExcption`异常,这是因为从`1.9.4`版本开始,JustAuth将不在强依赖`alipay-sdk-java`,如果你需要用到Alipay的授权登陆,那么你还需要添加以下依赖:
-
-```
-
- com.alipay.sdk
- alipay-sdk-java
- 3.7.4.ALL
-
-```
-
-## 7.“Scope参数错误或者Scope没有权限”是怎么回事?
-
-微信开放平台授权登录提示“Scope参数错误或者Scope没有权限”
-
-
-
-解决办法:请检查微信开放平台的应用是否有“微信登录”接口的权限。
-
-
-
-“接口状态”必须为“已获得”!
-
-## 8.微信登录时能在微信端提示登录成功吗?
-
-不可以,这是**微信公众平台**的功能,截至到目前(JustAuth v1.12.0)为止,暂不支持**微信公众平台**的授权登录
-
-## 9.微信登录时能不需要手机确认吗?扫码后就自动登录
-
-不可以,微信开放平台不支持这种操作。可以把微信扫码登录理解成qq用账号密码登录,扫完码后不手动点确认,微信怎么知道用户是否同意了授权?
-当然,**微信公众平台**的授权流程可以越过这个限制,只要关注了公众号,后续扫码成功后就会自动登录,但是这是**微信公众平台**的功能,截至到目前(JustAuth v1.12.0)为止,暂不支持**微信公众平台**的授权登录
-
-## 10.本地如何测那些*不支持本地地址回调*的授权登录?
-
-推荐几种方案:
-1. 改`hosts`,然后将测试程序的端口改为`80`
-2. 使用`Nginx`/`Apache`做代理
-3. FRP内网穿透,参考地址:[使用内网穿透的方式集成第三方登录](https://xkcoding.com/2019/05/22/spring-boot-login-with-oauth.html)
-
-## 11.如何获取QQ登录的`unionId`?
-
-在AuthConfig中设备`unionId`为`true`
-
-```java
-AuthRequest authRequest = new AuthQqRequest(AuthConfig.builder()
- .clientId("clientId")
- .clientSecret("clientSecret")
- .redirectUri("redirectUri")
- .unionId(true)
- .build());
-```
-> 注:使用unionId要求开发者必须已在qq开放平台申请了获取unionId的权限,否则可能会发生错误!切记!参考链接:[unionid介绍](http://wiki.connect.qq.com/unionid%E4%BB%8B%E7%BB%8D)
-
-## 12. `AuthCallback`报错?
-
-在使用JustAuth 1.13.0时,遇到如下所示错误:
-
-
-这是因为我没有做好代码审查和测试,所以才导致的问题。我检讨!深刻的检讨!
-
-请遇到该问题的朋友及时升级到最新版本(`1.13.1`修复该问题)
-
-ps: 我要去祭天了
-
-## 13. 为什么集成国外平台时,一直提示 `connect time out`?
-
-所有国外平台都无法直接通过java进行访问API,目前[simple-http](https://github.com/xkcoding/simple-http) Release版本,暂不支持添加代理,所以目前需要手动开启代理。
-
-代理开启的方式:
-```java
-System.setProperty("proxyPort", "10080");
-System.setProperty("proxyHost", "127.0.0.1");
-```
-以上代码可以在声明 `AuthRequest` 时创建,也可以全局执行。
-
-本地如果支持科学上网,就用自己本地的代理端口即可,如果不支持科学上网,可以去网上找一些免费的代理IP进行测试(请自行操作)。
diff --git a/docs/README.md b/docs/README.md
deleted file mode 100644
index 289b0383ff8d916365488e13ef4e41a80006d8a8..0000000000000000000000000000000000000000
--- a/docs/README.md
+++ /dev/null
@@ -1,110 +0,0 @@
-
-
-
-
- Login, so easy!
-
-
- 史上最全的整合第三方登录的开源库
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 开源地址: Gitee | Github
-
-
- QQ群: 230017570
-
-
- 文档更新日期: {docsify-updated}
-
-
-## 简介
-
-JustAuth,如你所见,它仅仅是一个**第三方授权登录**的**工具类库**,它可以让我们脱离繁琐的第三方登录SDK,让登录变得**So easy!**
-
-## 特点
-
-废话不多说,就俩字:
-
-1. **全**:已集成十多家第三方平台(国内外常用的基本都已包含),仍然还在持续扩展中([开发计划](https://gitee.com/yadong.zhang/JustAuth/issues/IUGRK))!
-2. **简**:API就是奔着最简单去设计的,尽量让您用起来没有障碍感!
-
-## 项目关注度趋势
-
-[](https://starchart.cc/justauth/JustAuth)
-
-
-
-## 参与&贡献
-
-JustAuth的发展离不开朋友们的支持,时至今日,JustAuth已渐趋完善,但仍有很大的改善空间。欢迎各位朋友为JustAuth贡献一份力量。
-
-### 提供bug或建议
-
-- [Gitee](https://gitee.com/yadong.zhang/JustAuth/issues)
-- [Github](https://github.com/justauth/JustAuth/issues)
-
-如果你正在使用JustAuth,可以在这儿留下你的足迹,获得优先推送、曝光
-
-- [Gitee](https://gitee.com/yadong.zhang/JustAuth/issues/IZ2T7)
-- [Github](https://github.com/justauth/JustAuth/issues/17)
-
-### 贡献代码的步骤
-
-1. fork本项目到自己的repo
-2. 把fork过去的项目也就是你仓库中的项目clone到你本地
-3. 修改代码(`dev`分支)
-4. commit后push到自己的仓库
-5. 发起PR(pull request) 请求,提交到`dev`分支
-6. 等待合并
-
-### 注意事项
-
-1. JustAuth只接受集成**OAuth2.0**的平台
-2. 建议安装“**阿里编码规约**”插件,然后进行开发
-3. 提交PR前请格式化好自己的代码
-4. 注释规范,自定义的方法一定要加上:方法说明、参数说明、返回值说明等
-
-## 功能尝鲜
-
-JustAuth一共有两个主要分支:
-- 线上版分支(master):稳定版,发布版就是这个分支的代码
-- 开发版分支(dev):不保证稳定,新功能都会优先推送到该分支,对于想尝鲜的朋友,可以直接下载代码,然后源码编译dev分支
-
-## 开源推荐
-- `spring-boot-demo` 深度学习并实战 spring boot 的项目: [https://github.com/xkcoding/spring-boot-demo](https://github.com/xkcoding/spring-boot-demo)
-- `mica` SpringBoot 微服务高效开发工具集: [https://github.com/lets-mica/mica](https://github.com/lets-mica/mica)
-- `pig` 宇宙最强微服务认证授权脚手架(架构师必备): [https://gitee.com/log4j/pig](https://gitee.com/log4j/pig)
-- `SpringBlade` 完整的线上解决方案(企业开发必备): https://gitee.com/smallc/SpringBlade
-
-## 捐赠
-
-| 支付宝 | 微信 |
-| :------------: | :------------: |
-| | |
-
diff --git a/docs/_404.md b/docs/_404.md
deleted file mode 100644
index d762b410a0151e948538431b07755fb7bde017e1..0000000000000000000000000000000000000000
--- a/docs/_404.md
+++ /dev/null
@@ -1,45 +0,0 @@
-# :alien: 404:alien:
-
-**非常感谢您对JustAuth的关注**,您现在查询的内容,作者**正在补充**中!
-
-### 您可能对以下文章感兴趣:
-
-- [OAuth的授权流程是什么样的?](https://docs.justauth.whnb.wang/#/oauth)
-- [如何使用JustAuth?](https://docs.justauth.whnb.wang/#/how-to-use)
-- [提问与回答?](https://docs.justauth.whnb.wang/#/Q&A)
-- [如何集成Github?](https://docs.justauth.whnb.wang/#/oauth/github)
-- [如何集成Gitee?](https://docs.justauth.whnb.wang/#/oauth/gitee)
-- [如何集成支付宝?](https://docs.justauth.whnb.wang/#/oauth/alipay)
-- [如何自定义state?](https://docs.justauth.whnb.wang/#/customize-the-state-cache)
-- [如何自定义接入自己搭建的oauth平台?](https://docs.justauth.whnb.wang/#/customize-the-oauth)
-- [有哪些配套项目?](https://docs.justauth.whnb.wang/#/supporting)
-
-### 想使用JustAuth集成第三方OAuth登录?
-
-- [Gitee登录](oauth/gitee.md)
-- [Github登录](oauth/github.md)
-- [qq登录](oauth/qq.md)
-- [微信开放平台登录](oauth/wechat_open.md)
-- [微博登录](oauth/weibo.md)
-- [支付宝登录](oauth/alipay.md)
-- [酷家乐登录](oauth/kujiale.md)
-- 更多文章,正在补充中...
-
-### 其他资料
-
-- [参考文档](references.md)
-
-### 如果还是没有您想要的内容,您可以:
-
-1. (建议) 提Issue: 【[github](https://github.com/justauth/JustAuth/issues)】 | 【[gitee](https://gitee.com/yadong.zhang/JustAuth/issues)】
-2. 点击本页面右下角【OPEN CHAT】开始在线聊天
-3. 本页面底部直接留言
-4. 关注公众号(公众号会不定期推送相关内容),扫下方二维码关注公众号:
-
-
-
-4. 加微信群(群内有各个优秀开源项目的作者和技术大神),微信扫下方二维码后加我好友(**注:一定要备注JustAUth,无备注的一律不加**):
-
-
-
-5. 加QQ群:QQ搜索`230017570`(该QQ群为JustAuth官方技术讨论群,禁止群内打广告!)
\ No newline at end of file
diff --git a/docs/_coverpage.md b/docs/_coverpage.md
deleted file mode 100644
index dd34383c5b65abe574aa2def9efc3aff092c8811..0000000000000000000000000000000000000000
--- a/docs/_coverpage.md
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-# JustAuth 1.15.5
-
-史上最全的整合第三方登录的开源库
-
-Login, so easy
-
-已集成国内外十多家平台
-极简的API设计
-
-
-[Gitee](https://gitee.com/yadong.zhang/JustAuth)
-[Github](https://github.com/zhangyd-c/JustAuth)
-[Get Started](#简介)
-
diff --git a/docs/_media/authcallback_error.png b/docs/_media/authcallback_error.png
deleted file mode 100644
index 49263f5374fda5e4146e332ec58f5cb4a0e1c85a..0000000000000000000000000000000000000000
Binary files a/docs/_media/authcallback_error.png and /dev/null differ
diff --git a/docs/_media/contributor/f4af112a.png b/docs/_media/contributor/f4af112a.png
deleted file mode 100644
index 1832cc122cb58718fcf63f43ec6dfd2bd2c2bdfd..0000000000000000000000000000000000000000
Binary files a/docs/_media/contributor/f4af112a.png and /dev/null differ
diff --git a/docs/_media/cover.png b/docs/_media/cover.png
deleted file mode 100644
index 442ab48f0017c0fd222da922be864bb234aef1ee..0000000000000000000000000000000000000000
Binary files a/docs/_media/cover.png and /dev/null differ
diff --git a/docs/_media/custom/gitlab.png b/docs/_media/custom/gitlab.png
deleted file mode 100644
index 567f6fcd0850cf2ca54bc127b050d410b2699b25..0000000000000000000000000000000000000000
Binary files a/docs/_media/custom/gitlab.png and /dev/null differ
diff --git a/docs/_media/custom/gitlab2.png b/docs/_media/custom/gitlab2.png
deleted file mode 100644
index 26b904d13493196a9f345487339989f56b20e823..0000000000000000000000000000000000000000
Binary files a/docs/_media/custom/gitlab2.png and /dev/null differ
diff --git a/docs/_media/custom/gitlab3.png b/docs/_media/custom/gitlab3.png
deleted file mode 100644
index 679930a2a1394ba5e40830bc1cc064794699dfe0..0000000000000000000000000000000000000000
Binary files a/docs/_media/custom/gitlab3.png and /dev/null differ
diff --git a/docs/_media/custom/gitlab4.png b/docs/_media/custom/gitlab4.png
deleted file mode 100644
index 4049d38efe3829f820e9b7f189edc3a5e452c2c0..0000000000000000000000000000000000000000
Binary files a/docs/_media/custom/gitlab4.png and /dev/null differ
diff --git a/docs/_media/extended/justauth_integrated_with_the_existing_account_system.png b/docs/_media/extended/justauth_integrated_with_the_existing_account_system.png
deleted file mode 100644
index b257adb044becd6e214ec46be3171c834065d129..0000000000000000000000000000000000000000
Binary files a/docs/_media/extended/justauth_integrated_with_the_existing_account_system.png and /dev/null differ
diff --git a/docs/_media/justauth@0,1x.png b/docs/_media/justauth@0,1x.png
deleted file mode 100644
index 88a8e06a7be863ffc0053d2a120920021b7a1e73..0000000000000000000000000000000000000000
Binary files a/docs/_media/justauth@0,1x.png and /dev/null differ
diff --git a/docs/_media/justauth@0,25x.png b/docs/_media/justauth@0,25x.png
deleted file mode 100644
index 878ee601545a31abfc9b20ba1eda65af73cae92c..0000000000000000000000000000000000000000
Binary files a/docs/_media/justauth@0,25x.png and /dev/null differ
diff --git a/docs/_media/justauth_live.png b/docs/_media/justauth_live.png
deleted file mode 100644
index d769c46e8a48075ad3b27f9cf3742650c8953967..0000000000000000000000000000000000000000
Binary files a/docs/_media/justauth_live.png and /dev/null differ
diff --git a/docs/_media/oauth/2055a056.png b/docs/_media/oauth/2055a056.png
deleted file mode 100644
index 222fd022a81ec7a4389cd760e8d75378e9bbdd0d..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/2055a056.png and /dev/null differ
diff --git a/docs/_media/oauth/2f1b9c2c.png b/docs/_media/oauth/2f1b9c2c.png
deleted file mode 100644
index d3e734bc1b75534b5b5f801696bcddaa8ab326b3..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/2f1b9c2c.png and /dev/null differ
diff --git a/docs/_media/oauth/4f3da199.png b/docs/_media/oauth/4f3da199.png
deleted file mode 100644
index 59a963952f4a19559f9273d3426b8ea8a54edd23..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/4f3da199.png and /dev/null differ
diff --git a/docs/_media/oauth/673628f8.png b/docs/_media/oauth/673628f8.png
deleted file mode 100644
index ab122256d966396fef1f9fbf5b428291eeab492e..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/673628f8.png and /dev/null differ
diff --git a/docs/_media/oauth/7bc9ea47.png b/docs/_media/oauth/7bc9ea47.png
deleted file mode 100644
index e5468d9433e6c04f6ddd4b4273e93e8f7716ed09..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/7bc9ea47.png and /dev/null differ
diff --git a/docs/_media/oauth/7fded4b4.png b/docs/_media/oauth/7fded4b4.png
deleted file mode 100644
index e1d07afef160adfd9366558e62d0f202a7137515..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/7fded4b4.png and /dev/null differ
diff --git a/docs/_media/oauth/930e0825.png b/docs/_media/oauth/930e0825.png
deleted file mode 100644
index 62aa374a96f9a447b15021a8dfdfa37024914d79..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/930e0825.png and /dev/null differ
diff --git a/docs/_media/oauth/ac549f1a.png b/docs/_media/oauth/ac549f1a.png
deleted file mode 100644
index 0508fbb8b158d8d8da5a6c638a7bee64143fd2be..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/ac549f1a.png and /dev/null differ
diff --git a/docs/_media/oauth/alipay_01.png b/docs/_media/oauth/alipay_01.png
deleted file mode 100644
index 9edb2ca3e9e976e6839c3716a6135ac9cca2ce38..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/alipay_01.png and /dev/null differ
diff --git a/docs/_media/oauth/alipay_02.png b/docs/_media/oauth/alipay_02.png
deleted file mode 100644
index 88fecef73912364cfc986649195c4e35213b8fc9..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/alipay_02.png and /dev/null differ
diff --git a/docs/_media/oauth/alipay_03.png b/docs/_media/oauth/alipay_03.png
deleted file mode 100644
index 52a6e510a28b351e7deb3d1e66a49f13c16c96ad..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/alipay_03.png and /dev/null differ
diff --git a/docs/_media/oauth/alipay_04.png b/docs/_media/oauth/alipay_04.png
deleted file mode 100644
index c068f7b83fa72b9255ceda174f08f1cf804f76d7..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/alipay_04.png and /dev/null differ
diff --git a/docs/_media/oauth/alipay_05.png b/docs/_media/oauth/alipay_05.png
deleted file mode 100644
index 556b90e8f80c26a447c17ddea2ec3797b2d70b75..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/alipay_05.png and /dev/null differ
diff --git a/docs/_media/oauth/alipay_06.png b/docs/_media/oauth/alipay_06.png
deleted file mode 100644
index 071a8629aa7c1f04d8c804d5e1b7579bceff27fe..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/alipay_06.png and /dev/null differ
diff --git a/docs/_media/oauth/alipay_07.png b/docs/_media/oauth/alipay_07.png
deleted file mode 100644
index 8f2b4d18e5d1555228a26f4eca6a1aa085278f6f..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/alipay_07.png and /dev/null differ
diff --git a/docs/_media/oauth/alipay_08.png b/docs/_media/oauth/alipay_08.png
deleted file mode 100644
index 13c67a0c0a606da8aa9419877d3189a9306d0530..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/alipay_08.png and /dev/null differ
diff --git a/docs/_media/oauth/alipay_09.png b/docs/_media/oauth/alipay_09.png
deleted file mode 100644
index ee5135ca0ec468642db221bc841a2ca815f3869c..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/alipay_09.png and /dev/null differ
diff --git a/docs/_media/oauth/alipay_10.png b/docs/_media/oauth/alipay_10.png
deleted file mode 100644
index 8757288ee18a0a27d9e179bdcb959f734e8de49f..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/alipay_10.png and /dev/null differ
diff --git a/docs/_media/oauth/alipay_11.png b/docs/_media/oauth/alipay_11.png
deleted file mode 100644
index 76d5844e784e9847ee31cbe881de37704b63c4c3..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/alipay_11.png and /dev/null differ
diff --git a/docs/_media/oauth/alipay_12.png b/docs/_media/oauth/alipay_12.png
deleted file mode 100644
index 87cde9a53e3116e6802c566af1b2a886bc7a17ca..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/alipay_12.png and /dev/null differ
diff --git a/docs/_media/oauth/alipay_13.png b/docs/_media/oauth/alipay_13.png
deleted file mode 100644
index 61378a26f51e1615f322a91f4906b3e48b580d7b..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/alipay_13.png and /dev/null differ
diff --git a/docs/_media/oauth/alipay_14.png b/docs/_media/oauth/alipay_14.png
deleted file mode 100644
index 1c52d1e22a4987935c46c904f3dd587b150bbd28..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/alipay_14.png and /dev/null differ
diff --git a/docs/_media/oauth/alipay_15.png b/docs/_media/oauth/alipay_15.png
deleted file mode 100644
index 38e47f08d849f1533081a3b9a108a4a5b8d51ad3..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/alipay_15.png and /dev/null differ
diff --git a/docs/_media/oauth/ca78b40f.png b/docs/_media/oauth/ca78b40f.png
deleted file mode 100644
index 81facf84f8efc85e3b9e3244619c8e9e86c0e695..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/ca78b40f.png and /dev/null differ
diff --git a/docs/_media/oauth/f44fb011.png b/docs/_media/oauth/f44fb011.png
deleted file mode 100644
index fca71ad3006f1353be1b43011b2e9f88729056c1..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/f44fb011.png and /dev/null differ
diff --git a/docs/_media/oauth/gitee_01.png b/docs/_media/oauth/gitee_01.png
deleted file mode 100644
index 3c8d6edd6b6fec39a2b4fa684d355ac961dcf05e..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/gitee_01.png and /dev/null differ
diff --git a/docs/_media/oauth/gitee_02.png b/docs/_media/oauth/gitee_02.png
deleted file mode 100644
index 03e6778adc4075aa37988a85c668c9f68d072f0b..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/gitee_02.png and /dev/null differ
diff --git a/docs/_media/oauth/gitee_03.png b/docs/_media/oauth/gitee_03.png
deleted file mode 100644
index 6987ab9a22c394a19bdaaf900c409e37fcd6844c..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/gitee_03.png and /dev/null differ
diff --git a/docs/_media/oauth/gitee_04.png b/docs/_media/oauth/gitee_04.png
deleted file mode 100644
index 4d1e91eaecb1b46ae816db5a83b6e87eee816025..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/gitee_04.png and /dev/null differ
diff --git a/docs/_media/oauth/github_01.png b/docs/_media/oauth/github_01.png
deleted file mode 100644
index d664cfca253ff52c2a090162bf1f1d974bcf201f..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/github_01.png and /dev/null differ
diff --git a/docs/_media/oauth/github_02.png b/docs/_media/oauth/github_02.png
deleted file mode 100644
index 8514bbd99082869a55edad8672331fd2f3d4f824..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/github_02.png and /dev/null differ
diff --git a/docs/_media/oauth/github_03.png b/docs/_media/oauth/github_03.png
deleted file mode 100644
index 1bdc1ec02dba01670036526eea01dfefd1a5923f..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/github_03.png and /dev/null differ
diff --git a/docs/_media/oauth/github_04.png b/docs/_media/oauth/github_04.png
deleted file mode 100644
index 14548fb3c65fc909dc0c06a35c3834e8e3c3a187..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/github_04.png and /dev/null differ
diff --git a/docs/_media/oauth/github_05.png b/docs/_media/oauth/github_05.png
deleted file mode 100644
index e7ccb53b5ab0df7337bd9ea60db4a153eed59304..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/github_05.png and /dev/null differ
diff --git a/docs/_media/oauth/github_06.png b/docs/_media/oauth/github_06.png
deleted file mode 100644
index 06cd6a7cee00f790ec7dd9dde276bbe9f9a2b62b..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/github_06.png and /dev/null differ
diff --git a/docs/_media/oauth/kujiale_1.png b/docs/_media/oauth/kujiale_1.png
deleted file mode 100644
index 02eb4626367e0919baa6455465919212c120dce4..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/kujiale_1.png and /dev/null differ
diff --git a/docs/_media/oauth/kujiale_2.png b/docs/_media/oauth/kujiale_2.png
deleted file mode 100644
index dac82e0be86417772c41f31cc47f2d4ce8d56847..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/kujiale_2.png and /dev/null differ
diff --git a/docs/_media/oauth/kujiale_3.png b/docs/_media/oauth/kujiale_3.png
deleted file mode 100644
index 71552ff005f90a025a4e652715a97e7e32dec024..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/kujiale_3.png and /dev/null differ
diff --git a/docs/_media/oauth/kujiale_4.png b/docs/_media/oauth/kujiale_4.png
deleted file mode 100644
index 5dc48a1fdf88af297bb8305a90294b2509d95967..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/kujiale_4.png and /dev/null differ
diff --git a/docs/_media/oauth/kujiale_5.png b/docs/_media/oauth/kujiale_5.png
deleted file mode 100644
index 1dd25bfe743adb4a88fa285d89cf9c619ad313e1..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/kujiale_5.png and /dev/null differ
diff --git a/docs/_media/oauth/kujiale_6.png b/docs/_media/oauth/kujiale_6.png
deleted file mode 100644
index 5af409b772882ee2042d65edb65bf02c6498087d..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/kujiale_6.png and /dev/null differ
diff --git a/docs/_media/oauth/qq_01.png b/docs/_media/oauth/qq_01.png
deleted file mode 100644
index aca44b6526452f878d177d010393b27335ff7bea..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/qq_01.png and /dev/null differ
diff --git a/docs/_media/oauth/wechat_01.png b/docs/_media/oauth/wechat_01.png
deleted file mode 100644
index fa3fdb2aa41559f70472ad7c19e5626a468ad9c1..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/wechat_01.png and /dev/null differ
diff --git a/docs/_media/oauth/wechat_02.png b/docs/_media/oauth/wechat_02.png
deleted file mode 100644
index d434c08054543802b0b1e94ffa958f39b57d5fc2..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/wechat_02.png and /dev/null differ
diff --git a/docs/_media/oauth/wechat_03.png b/docs/_media/oauth/wechat_03.png
deleted file mode 100644
index 10fd90cf950939c941123c1e03ad02827cdbe8ff..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/wechat_03.png and /dev/null differ
diff --git a/docs/_media/oauth/wechat_04.png b/docs/_media/oauth/wechat_04.png
deleted file mode 100644
index 91afa0708df422ed153b1b6040c0f15dab2e30dc..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/wechat_04.png and /dev/null differ
diff --git a/docs/_media/oauth/wechat_05.png b/docs/_media/oauth/wechat_05.png
deleted file mode 100644
index 7d4066f0fc09b2600a86850ae1aa6dc5f6ef278a..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/wechat_05.png and /dev/null differ
diff --git a/docs/_media/oauth/wechat_06.png b/docs/_media/oauth/wechat_06.png
deleted file mode 100644
index 8d278390fa940c488271b05e902181a499437d0c..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/wechat_06.png and /dev/null differ
diff --git a/docs/_media/oauth/wechat_07.png b/docs/_media/oauth/wechat_07.png
deleted file mode 100644
index 8a86a6df44b2643779f542c3edc5bc6341c6af5c..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/wechat_07.png and /dev/null differ
diff --git a/docs/_media/oauth/weibo_01.png b/docs/_media/oauth/weibo_01.png
deleted file mode 100644
index 9c2903861a3b1cdedfcc1acb5b7987a8cf67c33d..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/weibo_01.png and /dev/null differ
diff --git a/docs/_media/oauth/weibo_02.png b/docs/_media/oauth/weibo_02.png
deleted file mode 100644
index 4b39e41e8a8961d89ec5a6cbbf803f68a73b5292..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/weibo_02.png and /dev/null differ
diff --git a/docs/_media/oauth/weibo_03.png b/docs/_media/oauth/weibo_03.png
deleted file mode 100644
index 43e8a3819ce399c0d27785fd7a5572ed8dbf0938..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/weibo_03.png and /dev/null differ
diff --git a/docs/_media/oauth/weibo_04.png b/docs/_media/oauth/weibo_04.png
deleted file mode 100644
index 88c2687580c6b8829da362e4eb50244ddd2c57c3..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/weibo_04.png and /dev/null differ
diff --git a/docs/_media/oauth/weibo_05.png b/docs/_media/oauth/weibo_05.png
deleted file mode 100644
index 1d227a999439dfe43d8a407b9a28e5dde25b1ee2..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/weibo_05.png and /dev/null differ
diff --git a/docs/_media/oauth/weibo_06.png b/docs/_media/oauth/weibo_06.png
deleted file mode 100644
index c4e89c9df0bee469d89e873c725c6a1c107c1569..0000000000000000000000000000000000000000
Binary files a/docs/_media/oauth/weibo_06.png and /dev/null differ
diff --git a/docs/_media/scope_error.png b/docs/_media/scope_error.png
deleted file mode 100644
index 33f4b8717df38bf8cd49744fdc1dd5c1609e0b96..0000000000000000000000000000000000000000
Binary files a/docs/_media/scope_error.png and /dev/null differ
diff --git a/docs/_media/scope_error2.png b/docs/_media/scope_error2.png
deleted file mode 100644
index db50aae6b1027ea44bc5152f1da42885e2c9059c..0000000000000000000000000000000000000000
Binary files a/docs/_media/scope_error2.png and /dev/null differ
diff --git a/docs/_sidebar.md b/docs/_sidebar.md
deleted file mode 100644
index c6d0b2c345135c5536a86e94cb31726328a65750..0000000000000000000000000000000000000000
--- a/docs/_sidebar.md
+++ /dev/null
@@ -1,51 +0,0 @@
-- [入门和使用](README.md)
-- [贡献者名单](contributors.md)
-- 快速开始
- - [名词解释](explain.md)
- - [OAuth流程](oauth.md)
- - [如何使用](how-to-use.md)
-- [Q&A](Q&A.md)
-- 集成第三方
- - [√ Gitee登录](oauth/gitee.md)
- - [√ Github登录](oauth/github.md)
- - [√ qq登录](oauth/qq.md)
- - [√ 微信开放平台登录](oauth/wechat_open.md)
- - [√ 微博登录](oauth/weibo.md)
- - [√ 支付宝登录](oauth/alipay.md)
- - [√ 酷家乐登录](oauth/kujiale.md)
- - [√ 推特登录](oauth/twitter.md)
- - [√ Coding登录](oauth/coding.md)
- - [√ 阿里云登录](oauth/aliyun.md)
- - [CSDN登录](oauth/csdn.md)
- - [微信企业版登录](oauth/wechatEnterprise.md)
- - [微信公众平台登录](oauth/wechat_mp.md)
- - [百度登录](oauth/baidu.md)
- - [钉钉登录](oauth/dingtalk.md)
- - [开源中国登录](oauth/oschina.md)
- - [淘宝登录](oauth/taobao.md)
- - [Google登录](oauth/google.md)
- - [Facebook登录](oauth/facebook.md)
- - [抖音登录](oauth/douyin.md)
- - [领英登录](oauth/linkedin.md)
- - [微软登录](oauth/microsoft.md)
- - [小米登录](oauth/mi.md)
- - [头条登录](oauth/toutiao.md)
- - [Teambition登录](oauth/teambition.md)
- - [人人登录](oauth/renren.md)
- - [Pinterest登录](oauth/pinterest.md)
- - [Stackoverflow登录](oauth/stackoverflow.md)
- - [华为登录](oauth/huawei.md)
- - [Gitlab登录](oauth/gitlab.md)
- - [美团登录](oauth/meituan.md)
- - [饿了么登录](oauth/eleme.md)
- - [飞书登录](oauth/feishu.md)
-- 高级特性
- - [使用State](using-state.md)
- - [自定义state缓存](customize-the-state-cache.md)
- - [自定义第三方平台的OAuth](customize-the-oauth.md)
-- 扩展内容
- - [JustAuth与现有用户系统整合](extended/justauth_integrated_with_the_existing_account_system.md)
-- [Who is using](users.md)
-- [致谢](thx.md)
-- [参考文档](references.md)
-- [更新记录](update.md)
diff --git a/docs/back/baidu.md b/docs/back/baidu.md
deleted file mode 100644
index 00ff6e4b57c63ff0bf9041d762d4776acca02f47..0000000000000000000000000000000000000000
--- a/docs/back/baidu.md
+++ /dev/null
@@ -1,7 +0,0 @@
-(敬请期待...)
-
-## 1. 申请应用
-
-## 2. 集成JustAuth
-
-## 3. 授权结果
\ No newline at end of file
diff --git a/docs/back/coding.md b/docs/back/coding.md
deleted file mode 100644
index 00ff6e4b57c63ff0bf9041d762d4776acca02f47..0000000000000000000000000000000000000000
--- a/docs/back/coding.md
+++ /dev/null
@@ -1,7 +0,0 @@
-(敬请期待...)
-
-## 1. 申请应用
-
-## 2. 集成JustAuth
-
-## 3. 授权结果
\ No newline at end of file
diff --git a/docs/back/csdn.md b/docs/back/csdn.md
deleted file mode 100644
index 00ff6e4b57c63ff0bf9041d762d4776acca02f47..0000000000000000000000000000000000000000
--- a/docs/back/csdn.md
+++ /dev/null
@@ -1,7 +0,0 @@
-(敬请期待...)
-
-## 1. 申请应用
-
-## 2. 集成JustAuth
-
-## 3. 授权结果
\ No newline at end of file
diff --git a/docs/back/dingtalk.md b/docs/back/dingtalk.md
deleted file mode 100644
index 00ff6e4b57c63ff0bf9041d762d4776acca02f47..0000000000000000000000000000000000000000
--- a/docs/back/dingtalk.md
+++ /dev/null
@@ -1,7 +0,0 @@
-(敬请期待...)
-
-## 1. 申请应用
-
-## 2. 集成JustAuth
-
-## 3. 授权结果
\ No newline at end of file
diff --git a/docs/back/douyin.md b/docs/back/douyin.md
deleted file mode 100644
index 00ff6e4b57c63ff0bf9041d762d4776acca02f47..0000000000000000000000000000000000000000
--- a/docs/back/douyin.md
+++ /dev/null
@@ -1,7 +0,0 @@
-(敬请期待...)
-
-## 1. 申请应用
-
-## 2. 集成JustAuth
-
-## 3. 授权结果
\ No newline at end of file
diff --git a/docs/back/eleme.md b/docs/back/eleme.md
deleted file mode 100644
index 00ff6e4b57c63ff0bf9041d762d4776acca02f47..0000000000000000000000000000000000000000
--- a/docs/back/eleme.md
+++ /dev/null
@@ -1,7 +0,0 @@
-(敬请期待...)
-
-## 1. 申请应用
-
-## 2. 集成JustAuth
-
-## 3. 授权结果
\ No newline at end of file
diff --git a/docs/back/facebook.md b/docs/back/facebook.md
deleted file mode 100644
index 00ff6e4b57c63ff0bf9041d762d4776acca02f47..0000000000000000000000000000000000000000
--- a/docs/back/facebook.md
+++ /dev/null
@@ -1,7 +0,0 @@
-(敬请期待...)
-
-## 1. 申请应用
-
-## 2. 集成JustAuth
-
-## 3. 授权结果
\ No newline at end of file
diff --git a/docs/back/gitlab.md b/docs/back/gitlab.md
deleted file mode 100644
index 00ff6e4b57c63ff0bf9041d762d4776acca02f47..0000000000000000000000000000000000000000
--- a/docs/back/gitlab.md
+++ /dev/null
@@ -1,7 +0,0 @@
-(敬请期待...)
-
-## 1. 申请应用
-
-## 2. 集成JustAuth
-
-## 3. 授权结果
\ No newline at end of file
diff --git a/docs/back/google.md b/docs/back/google.md
deleted file mode 100644
index 00ff6e4b57c63ff0bf9041d762d4776acca02f47..0000000000000000000000000000000000000000
--- a/docs/back/google.md
+++ /dev/null
@@ -1,7 +0,0 @@
-(敬请期待...)
-
-## 1. 申请应用
-
-## 2. 集成JustAuth
-
-## 3. 授权结果
\ No newline at end of file
diff --git a/docs/back/huawei.md b/docs/back/huawei.md
deleted file mode 100644
index 00ff6e4b57c63ff0bf9041d762d4776acca02f47..0000000000000000000000000000000000000000
--- a/docs/back/huawei.md
+++ /dev/null
@@ -1,7 +0,0 @@
-(敬请期待...)
-
-## 1. 申请应用
-
-## 2. 集成JustAuth
-
-## 3. 授权结果
\ No newline at end of file
diff --git a/docs/back/linkedin.md b/docs/back/linkedin.md
deleted file mode 100644
index 00ff6e4b57c63ff0bf9041d762d4776acca02f47..0000000000000000000000000000000000000000
--- a/docs/back/linkedin.md
+++ /dev/null
@@ -1,7 +0,0 @@
-(敬请期待...)
-
-## 1. 申请应用
-
-## 2. 集成JustAuth
-
-## 3. 授权结果
\ No newline at end of file
diff --git a/docs/back/meituan.md b/docs/back/meituan.md
deleted file mode 100644
index 00ff6e4b57c63ff0bf9041d762d4776acca02f47..0000000000000000000000000000000000000000
--- a/docs/back/meituan.md
+++ /dev/null
@@ -1,7 +0,0 @@
-(敬请期待...)
-
-## 1. 申请应用
-
-## 2. 集成JustAuth
-
-## 3. 授权结果
\ No newline at end of file
diff --git a/docs/back/mi.md b/docs/back/mi.md
deleted file mode 100644
index 00ff6e4b57c63ff0bf9041d762d4776acca02f47..0000000000000000000000000000000000000000
--- a/docs/back/mi.md
+++ /dev/null
@@ -1,7 +0,0 @@
-(敬请期待...)
-
-## 1. 申请应用
-
-## 2. 集成JustAuth
-
-## 3. 授权结果
\ No newline at end of file
diff --git a/docs/back/microsoft.md b/docs/back/microsoft.md
deleted file mode 100644
index 00ff6e4b57c63ff0bf9041d762d4776acca02f47..0000000000000000000000000000000000000000
--- a/docs/back/microsoft.md
+++ /dev/null
@@ -1,7 +0,0 @@
-(敬请期待...)
-
-## 1. 申请应用
-
-## 2. 集成JustAuth
-
-## 3. 授权结果
\ No newline at end of file
diff --git a/docs/back/oschina.md b/docs/back/oschina.md
deleted file mode 100644
index 00ff6e4b57c63ff0bf9041d762d4776acca02f47..0000000000000000000000000000000000000000
--- a/docs/back/oschina.md
+++ /dev/null
@@ -1,7 +0,0 @@
-(敬请期待...)
-
-## 1. 申请应用
-
-## 2. 集成JustAuth
-
-## 3. 授权结果
\ No newline at end of file
diff --git a/docs/back/pinterest.md b/docs/back/pinterest.md
deleted file mode 100644
index 00ff6e4b57c63ff0bf9041d762d4776acca02f47..0000000000000000000000000000000000000000
--- a/docs/back/pinterest.md
+++ /dev/null
@@ -1,7 +0,0 @@
-(敬请期待...)
-
-## 1. 申请应用
-
-## 2. 集成JustAuth
-
-## 3. 授权结果
\ No newline at end of file
diff --git a/docs/back/renren.md b/docs/back/renren.md
deleted file mode 100644
index 00ff6e4b57c63ff0bf9041d762d4776acca02f47..0000000000000000000000000000000000000000
--- a/docs/back/renren.md
+++ /dev/null
@@ -1,7 +0,0 @@
-(敬请期待...)
-
-## 1. 申请应用
-
-## 2. 集成JustAuth
-
-## 3. 授权结果
\ No newline at end of file
diff --git a/docs/back/stackoverflow.md b/docs/back/stackoverflow.md
deleted file mode 100644
index 00ff6e4b57c63ff0bf9041d762d4776acca02f47..0000000000000000000000000000000000000000
--- a/docs/back/stackoverflow.md
+++ /dev/null
@@ -1,7 +0,0 @@
-(敬请期待...)
-
-## 1. 申请应用
-
-## 2. 集成JustAuth
-
-## 3. 授权结果
\ No newline at end of file
diff --git a/docs/back/taobao.md b/docs/back/taobao.md
deleted file mode 100644
index 00ff6e4b57c63ff0bf9041d762d4776acca02f47..0000000000000000000000000000000000000000
--- a/docs/back/taobao.md
+++ /dev/null
@@ -1,7 +0,0 @@
-(敬请期待...)
-
-## 1. 申请应用
-
-## 2. 集成JustAuth
-
-## 3. 授权结果
\ No newline at end of file
diff --git a/docs/back/teambition.md b/docs/back/teambition.md
deleted file mode 100644
index 00ff6e4b57c63ff0bf9041d762d4776acca02f47..0000000000000000000000000000000000000000
--- a/docs/back/teambition.md
+++ /dev/null
@@ -1,7 +0,0 @@
-(敬请期待...)
-
-## 1. 申请应用
-
-## 2. 集成JustAuth
-
-## 3. 授权结果
\ No newline at end of file
diff --git a/docs/back/tencentCloud.md b/docs/back/tencentCloud.md
deleted file mode 100644
index 00ff6e4b57c63ff0bf9041d762d4776acca02f47..0000000000000000000000000000000000000000
--- a/docs/back/tencentCloud.md
+++ /dev/null
@@ -1,7 +0,0 @@
-(敬请期待...)
-
-## 1. 申请应用
-
-## 2. 集成JustAuth
-
-## 3. 授权结果
\ No newline at end of file
diff --git a/docs/back/toutiao.md b/docs/back/toutiao.md
deleted file mode 100644
index 00ff6e4b57c63ff0bf9041d762d4776acca02f47..0000000000000000000000000000000000000000
--- a/docs/back/toutiao.md
+++ /dev/null
@@ -1,7 +0,0 @@
-(敬请期待...)
-
-## 1. 申请应用
-
-## 2. 集成JustAuth
-
-## 3. 授权结果
\ No newline at end of file
diff --git a/docs/back/wechatEnterprise.md b/docs/back/wechatEnterprise.md
deleted file mode 100644
index 00ff6e4b57c63ff0bf9041d762d4776acca02f47..0000000000000000000000000000000000000000
--- a/docs/back/wechatEnterprise.md
+++ /dev/null
@@ -1,7 +0,0 @@
-(敬请期待...)
-
-## 1. 申请应用
-
-## 2. 集成JustAuth
-
-## 3. 授权结果
\ No newline at end of file
diff --git a/docs/back/wechat_mp.md b/docs/back/wechat_mp.md
deleted file mode 100644
index ff4be0a26eca5abbe877d4899fb9c919d230fccc..0000000000000000000000000000000000000000
--- a/docs/back/wechat_mp.md
+++ /dev/null
@@ -1,10 +0,0 @@
-(敬请期待...)
-
-### 声明:
-此文档适用于**微信公众平台**!
-
-## 1. 申请应用
-
-## 2. 集成JustAuth
-
-## 3. 授权结果
\ No newline at end of file
diff --git a/docs/contributors.md b/docs/contributors.md
deleted file mode 100644
index 8bfc18c5e7f733a55eacc5ca8978dceae8f270c3..0000000000000000000000000000000000000000
--- a/docs/contributors.md
+++ /dev/null
@@ -1,38 +0,0 @@
-# 项目贡献者名单
-
-> 排序不分先后
-
-- · yadong.zhang : [Github] | [Gitee] | [个人网站]
-- · yangkai.shen : [Github] | [个人网站]
- - 集成微信登录、QQ登录、Google登录、微软登录、小米登录、企业微信登录
- - 优化代码、架构,增加自定义缓存
- - 提供jFinal版demo
- - 提供ActFramework版demo
- - 提供SpringBoot快速集成的justauth-spring-boot-starter
-- · pengisgood : [Github] | [个人网站]
- - 集成人人登录、Pinterest登录、StackOverflow登录、Twitter登录
-- · skqing : [Gitee] | [个人网站]
- - 修复钉钉登录的部分问题
- - 优化微博登录
-- · dyc12ii : [Gitee]
- - 升级fastjson版本至1.2.58
-- · harrylee : [Gitee]
- - 升级fastjson依赖到1.2.60
- - 集成京东登录
-- · Veigar : [Github]
- - 集成酷家乐登录
-- · 蛋蛋 : [Gitee] | [Github]
- - 提供NutzBoot版的demo项目
-- · Braavos96 : [Github]
- - 添加测试用例:UrlBuilder 、GlobalAuthUtil
-- · Chris Smowton : [Github]
- - 添加测试用例:StringUtils
-- · githubeacon : [Github]
- - 增加飞书授权登录
-- · runningzyp : [Github]
- - 修改文案错误
-- · Spet : [Github]
- - 集成阿里云授权登录
-- 千年等一回,我只为等你...
-
-ps: 如有遗漏,请告知
diff --git a/docs/customize-the-oauth.md b/docs/customize-the-oauth.md
deleted file mode 100644
index 5926c1291190c3314cf34bc6175602e70276834f..0000000000000000000000000000000000000000
--- a/docs/customize-the-oauth.md
+++ /dev/null
@@ -1,209 +0,0 @@
-# 自定义第三方平台的OAuth
-
-[JustAuth](https://github.com/justauth/JustAuth)发展到现在,基本上已经涵盖了国内外大多数知名的网站。[JustAuth](https://github.com/justauth/JustAuth)也一直以它的**全**和**简**,备受各位朋友的厚爱、支持。
-
-但现在OAuth技术越来越成熟,越来越多的个人站长或者企业都开始搭建自己的OAuth授权平台,那么针对这种情况,[JustAuth](https://github.com/justauth/JustAuth)并不能做到面面俱到,无法去集成所有支持OAuth的网站(这也是不现实的)。
-
-既然考虑到有这种需求,那么就要想办法解决,想办法填补漏洞,不为了自己,也为了陪伴[JustAuth](https://github.com/justauth/JustAuth)一路走来的所有朋友们。
-
-[JustAuth](https://github.com/justauth/JustAuth)开发团队也在[v1.12.0](https://github.com/justauth/JustAuth/releases/tag/v1.12.0)版本中新加入了一大特性,就是可以支持任意支持OAuth的网站通过JustAuth实现便捷的OAuth登录!
-
-下面我们会通过一个小例子,讲解如何使用JustAuth集成自己搭建的GitLab服务。
-
-> 注:本节将会使用[JustAuth-demo](https://github.com/justauth/JustAuth-demo)Demo项目进行演示
-
-## 搭建Gitlab服务
-
-请自行解决,如果已有搭建好的Gitlab私服,请直接进入下面的步骤
-
-## 创建应用
-
-
-
-
-## 实现AuthSource接口
-
-`AuthSource.java`是为了提供OAuth平台的API地址的统一接口,提供以下方法供实现:
-- `AuthSource#authorize()`: 获取授权url. 必须实现
-- `AuthSource#accessToken()`: 获取accessToken的url. 必须实现
-- `AuthSource#userInfo()`: 获取用户信息的url. 必须实现
-- `AuthSource#revoke()`: 获取取消授权的url. 非必须实现接口(部分平台不支持)
-- `AuthSource#refresh()`: 获取刷新授权的url. 非必须实现接口(部分平台不支持)
-
-**注:**
-- 当通过JustAuth扩展实现第三方授权时,请参考`AuthDefaultSource`自行创建对应的枚举类并实现`AuthSource`接口
-- 如果不是使用的枚举类,那么在授权成功后获取用户信息时,需要**单独处理source字段**的赋值
-- 如果扩展了对应枚举类时,在`me.zhyd.oauth.request.AuthRequest#login(AuthCallback)`中可以通过`xx.toString()`获取对应的source
-
-```java
-package me.zhyd.justauth;
-
-import me.zhyd.oauth.config.AuthSource;
-
-/**
- * @author yadong.zhang (yadong.zhang0415(a)gmail.com)
- * @version 1.0
- * @website https://www.zhyd.me
- * @date 2019/10/26 16:54
- * @since 1.8
- */
-public enum AuthCustomSource implements AuthSource {
-
- /**
- * 自己搭建的gitlab私服
- */
- MYGITLAB {
- /**
- * 授权的api
- *
- * @return url
- */
- @Override
- public String authorize() {
- return "http://gitlab.xxx.com/oauth/authorize";
- }
-
- /**
- * 获取accessToken的api
- *
- * @return url
- */
- @Override
- public String accessToken() {
- return "http://gitlab.xxx.com/oauth/token";
- }
-
- /**
- * 获取用户信息的api
- *
- * @return url
- */
- @Override
- public String userInfo() {
- return "http://gitlab.xxx.com/api/v4/user";
- }
- }
-}
-```
-
-## 创建自定义的Request
-
-```java
-package me.zhyd.justauth;
-
-import cn.hutool.http.HttpResponse;
-import com.alibaba.fastjson.JSONObject;
-import me.zhyd.oauth.cache.AuthStateCache;
-import me.zhyd.oauth.config.AuthConfig;
-import me.zhyd.oauth.enums.AuthUserGender;
-import me.zhyd.oauth.exception.AuthException;
-import me.zhyd.oauth.model.AuthCallback;
-import me.zhyd.oauth.model.AuthToken;
-import me.zhyd.oauth.model.AuthUser;
-import me.zhyd.oauth.request.AuthDefaultRequest;
-import me.zhyd.oauth.utils.UrlBuilder;
-
-/**
- * @author yadong.zhang (yadong.zhang0415(a)gmail.com)
- * @version 1.0
- * @website https://www.zhyd.me
- * @date 2019/10/26 17:00
- * @since 1.8
- */
-public class AuthMyGitlabRequest extends AuthDefaultRequest {
-
-
- public AuthMyGitlabRequest(AuthConfig config) {
- super(config, AuthCustomSource.MYGITLAB);
- }
-
- public AuthMyGitlabRequest(AuthConfig config, AuthStateCache authStateCache) {
- super(config, AuthCustomSource.MYGITLAB, authStateCache);
- }
-
- @Override
- protected AuthToken getAccessToken(AuthCallback authCallback) {
- HttpResponse response = doPostAuthorizationCode(authCallback.getCode());
- JSONObject object = JSONObject.parseObject(response.body());
-
- this.checkResponse(object);
-
- return AuthToken.builder()
- .accessToken(object.getString("access_token"))
- .refreshToken(object.getString("refresh_token"))
- .idToken(object.getString("id_token"))
- .tokenType(object.getString("token_type"))
- .scope(object.getString("scope"))
- .build();
- }
-
- @Override
- protected AuthUser getUserInfo(AuthToken authToken) {
- HttpResponse response = doGetUserInfo(authToken);
- JSONObject object = JSONObject.parseObject(response.body());
-
- this.checkResponse(object);
-
- return AuthUser.builder()
- .uuid(object.getString("id"))
- .username(object.getString("username"))
- .nickname(object.getString("name"))
- .avatar(object.getString("avatar_url"))
- .blog(object.getString("web_url"))
- .company(object.getString("organization"))
- .location(object.getString("location"))
- .email(object.getString("email"))
- .remark(object.getString("bio"))
- .gender(AuthUserGender.UNKNOWN)
- .token(authToken)
- .source(source.toString())
- .build();
- }
-
- private void checkResponse(JSONObject object) {
- // oauth/token 验证异常
- if (object.containsKey("error")) {
- throw new AuthException(object.getString("error_description"));
- }
- // user 验证异常
- if (object.containsKey("message")) {
- throw new AuthException(object.getString("message"));
- }
- }
-
- /**
- * 返回带{@code state}参数的授权url,授权回调时会带上这个{@code state}
- *
- * @param state state 验证授权流程的参数,可以防止csrf
- * @return 返回授权地址
- * @since 1.11.0
- */
- @Override
- public String authorize(String state) {
- return UrlBuilder.fromBaseUrl(super.authorize(state))
- .queryParam("scope", "read_user+openid")
- .build();
- }
-}
-```
-
-## 测试效果
-
-创建`AuthMyGitlabRequest`
-```java
-AuthRequest authRequest = new AuthMyGitlabRequest(AuthConfig.builder()
- .clientId("63398e403231d4aa7e856cf5413620d536a876cb94e8d10ced0d3191b5d1d246")
- .clientSecret("65b0eba68fff019e682e6755882a24dfdbf0a61be55de119cb8970320186c8eb")
- .redirectUri("http://127.0.0.1:8443/oauth/callback/mygitlab")
- .build());
-```
-
-> 注:完整代码都在[JustAuth-demo](https://github.com/justauth/JustAuth-demo)Demo项目中,本节只讲解关键代码
-
-登录后的效果为
-
-
-
-
-
-
diff --git a/docs/customize-the-state-cache.md b/docs/customize-the-state-cache.md
deleted file mode 100644
index af8e532ef0f76e4212b52d4030052e46f2c5028e..0000000000000000000000000000000000000000
--- a/docs/customize-the-state-cache.md
+++ /dev/null
@@ -1,123 +0,0 @@
-# 自定义state缓存
-> starter 内置了2种缓存实现,一种是上一节演示的默认实现,另一种是用户自定义的扩展实现。
-本节将会使用[JustAuth-demo](https://github.com/justauth/JustAuth-demo)Demo进行演示扩展Redis缓存的方式,当然了,你也可以自定义实现你自己的缓存。
-
-## 添加 Redis 依赖
-```xml
-
- org.springframework.boot
- spring-boot-starter-data-redis
-
-```
-
-### 添加redis配置
-
-```xml
-# 集成redis实现自定义的state缓存
-spring.redis.database=0
-spring.redis.host=localhost
-spring.redis.port=6379
-spring.redis.password=xxxx
-```
-### 实现state缓存接口
-
-```java
-package me.zhyd.justauth;
-
-import me.zhyd.oauth.cache.AuthCacheConfig;
-import me.zhyd.oauth.cache.AuthStateCache;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.data.redis.core.RedisTemplate;
-import org.springframework.data.redis.core.ValueOperations;
-import org.springframework.stereotype.Component;
-
-import javax.annotation.PostConstruct;
-import java.util.concurrent.TimeUnit;
-
-/**
- * 扩展Redis版的state缓存
- *
- * @author yadong.zhang (yadong.zhang0415(a)gmail.com)
- * @version 1.0
- * @date 2019/10/24 13:38
- * @since 1.8
- */
-@Component
-public class AuthStateRedisCache implements AuthStateCache {
-
- @Autowired
- private RedisTemplate redisTemplate;
-
- private ValueOperations valueOperations;
-
- @PostConstruct
- public void init() {
- valueOperations = redisTemplate.opsForValue();
- }
-
- /**
- * 存入缓存,默认3分钟
- *
- * @param key 缓存key
- * @param value 缓存内容
- */
- @Override
- public void cache(String key, String value) {
- valueOperations.set(key, value, AuthCacheConfig.timeout, TimeUnit.MILLISECONDS);
- }
-
- /**
- * 存入缓存
- *
- * @param key 缓存key
- * @param value 缓存内容
- * @param timeout 指定缓存过期时间(毫秒)
- */
- @Override
- public void cache(String key, String value, long timeout) {
- valueOperations.set(key, value, timeout, TimeUnit.MILLISECONDS);
- }
-
- /**
- * 获取缓存内容
- *
- * @param key 缓存key
- * @return 缓存内容
- */
- @Override
- public String get(String key) {
- return valueOperations.get(key);
- }
-
- /**
- * 是否存在key,如果对应key的value值已过期,也返回false
- *
- * @param key 缓存key
- * @return true:存在key,并且value没过期;false:key不存在或者已过期
- */
- @Override
- public boolean containsKey(String key) {
- return redisTemplate.hasKey(key);
- }
-}
-```
-
-### 获取Request
-
-本节以Gitee为例
-
-```java
-// 1. 注入新添加的cache
-@Autowired
-private AuthStateRedisCache stateRedisCache;
-
-// 2. 创建request时传入stateRedisCache
-AuthRequest authRequest = new AuthGiteeRequest(AuthConfig.builder()
- .clientId("clientId")
- .clientSecret("clientSecret")
- .redirectUri("redirectUri")
- .build(), stateRedisCache);// 此处传入自定义实现的类
-```
-
-
-到此已经完成了通过redis**扩展实现state缓存**的功能。当然,只要你愿意,你可以使用**任何一种**缓存技术去实现这个功能,并不局限于redis。
diff --git a/docs/explain.md b/docs/explain.md
deleted file mode 100644
index c0cbb9388a58ad7dddf5d0f3f56270e00e5abd85..0000000000000000000000000000000000000000
--- a/docs/explain.md
+++ /dev/null
@@ -1,36 +0,0 @@
-本文将就JustAuth中涉及到的一些配置、关键词做一下简单说明,方便使用者理解、使用。
-
-## 本文相关名词
-
-- `开发者` 指使用`JustAuth`的开发者
-- `第三方` 指开发者对接的第三方网站,比如:QQ平台、微信平台、微博平台
-- `用户` 指最终服务的真实用户
-
-## JustAuth中的关键词
-
-以下内容了解后,将会使你更容易地上手JustAuth。
-
-- `clientId` 客户端身份标识符(应用id),一般在申请完Oauth应用后,由**第三方平台颁发**,唯一
-- `clientSecret` 客户端密钥,一般在申请完Oauth应用后,由**第三方平台颁发**
-- `redirectUri` **开发者项目中的有效api地址**。用户在确认第三方平台授权(登录)后,第三方平台会重定向到该地址,并携带code等参数
-- `state` 用来保持授权会话流程完整性,防止CSRF攻击的安全的随机的参数,由**开发者生成**
-- `alipayPublicKey` 支付宝公钥。当选择支付宝登录时,必传该值,由**开发者生成**
-- `unionId` 是否需要申请unionid,目前只针对**qq登录**。注:qq授权登录时,获取unionid需要单独发送邮件申请权限。如果个人开发者账号中申请了该权限,可以将该值置为true,在获取openId时就会同步获取unionId。参考链接:[UnionID介绍](http://wiki.connect.qq.com/unionid%E4%BB%8B%E7%BB%8D)
-- `stackOverflowKey` Stack Overflow 登陆时需单独提供的key,由**第三方平台颁发**
-- `agentId` 企业微信登陆时需单独提供该值,由**第三方平台颁发**,为授权方的网页应用ID
-- `source` JustAuth支持的第三方平台,比如:GITHUB、GITEE等
-- `uuid` 一般为第三方平台的用户ID。以下几个平台需特别注意:
- - 钉钉、抖音:`uuid` 为用户的 `unionid`
- - 微信公众平台登录、京东、酷家乐、美团:`uuid` 为用户的 `openId`
- - 微信开放平台登录、QQ:`uuid` 为用户的 `openId`,平台支持获取`unionid`, `unionid` 在 `AuthToken` 中(如果支持),在登录完成后,可以通过 `response.getData().getToken().getUnionId()` 获取
- - Google:`uuid` 为用户的 `sub`,`sub`为Google的所有账户体系中用户唯一的身份标识符,详见:[OpenID Connect](https://developers.google.com/identity/protocols/oauth2/openid-connect)
-
-注:建议通过`uuid` + `source`的方式唯一确定一个用户,这样可以解决用户身份归属的问题。因为 单个用户ID 在某一平台中是唯一的,但不能保证在所有平台中都是唯一的。
-
-## 参考资料
-
-关于OAuth2相关的内容、原理可以自行参阅以下资料:
-
-- [The OAuth 2.0 Authorization Framework](https://tools.ietf.org/html/rfc6749)
-- [OAuth 2.0](https://oauth.net/2/)
-
diff --git a/docs/extended/justauth_integrated_with_the_existing_account_system.md b/docs/extended/justauth_integrated_with_the_existing_account_system.md
deleted file mode 100644
index 126bdb965217018741fbda52366e6d59fa0c0671..0000000000000000000000000000000000000000
--- a/docs/extended/justauth_integrated_with_the_existing_account_system.md
+++ /dev/null
@@ -1,12 +0,0 @@
-
-之前在群里经常会看到小伙伴有以下几点疑问:
-
-- JustAuth如何与现有用户系统整合?
-- JustAuth如何实现用户绑定?
-
-我就此需求,整理了一份**JustAuth与现有用户系统整合逻辑图**
-
-在线版: [JustAuth与现有用户系统整合](https://www.processon.com/view/link/5e71db29e4b015182029a567)
-
-
-
diff --git a/docs/how-to-use.md b/docs/how-to-use.md
deleted file mode 100644
index ffe53ca7adf4bbd09d1afbc66e7ef2ea54b26546..0000000000000000000000000000000000000000
--- a/docs/how-to-use.md
+++ /dev/null
@@ -1,202 +0,0 @@
-在前面有介绍到,JustAuth的特点之一就是**简**,极简主义,不给使用者造成不必要的障碍。
-
-既然牛皮吹下了, 那么如何才能用JustAuth实现第三方登录呢?
-
-## 使用步骤
-
-使用JustAuth总共分三步(**这三步也适合于JustAuth支持的任何一个平台**):
-
-1. 申请注册第三方平台的开发者账号
-2. 创建第三方平台的应用,获取配置信息(`accessKey`, `secretKey`, `redirectUri`)
-3. 使用该工具实现授权登陆
-
-## 使用方式
-
-- 引入依赖
-```xml
-
- me.zhyd.oauth
- JustAuth
- ${latest.version}
-
-```
-
-获取最新版本:[JustAuth](https://search.maven.org/search?q=g:me.zhyd.oauth%20AND%20a:JustAuth)
-
-- 调用api
-```java
-// 创建授权request
-AuthRequest authRequest = new AuthGiteeRequest(AuthConfig.builder()
- .clientId("clientId")
- .clientSecret("clientSecret")
- .redirectUri("redirectUri")
- .build());
-// 生成授权页面
-authRequest.authorize("state");
-// 授权登录后会返回code(auth_code(仅限支付宝))、state,1.8.0版本后,可以用AuthCallback类作为回调接口的参数
-// 注:JustAuth默认保存state的时效为3分钟,3分钟内未使用则会自动清除过期的state
-authRequest.login(callback);
-```
-
-
-注意,JustAuth从[v1.14.0](https://gitee.com/yadong.zhang/JustAuth/releases/v1.14.0)开始默认集成了的[simple-http](https://github.com/xkcoding/simple-http)作为HTTP通用接口(更新说明见[JustAuth 1.14.0版本正式发布!完美解耦HTTP工具](https://mp.weixin.qq.com/s?__biz=MzA3NDk3OTIwMg==&mid=2450633197&idx=1&sn=11e625b307db62b2f1c4e82f7744b2a2&chksm=88929300bfe51a16562b45592a264482ae2c74c6dbfa4a3aa9611ad4fea4a9be5b1f0545527d&token=1093833287&lang=zh_CN#rd)),鉴于一般项目中都已经集成了HTTP工具,比如OkHttp3、apache HttpClient、hutool-http,因此为了减少不必要的依赖,从[v1.14.0](https://gitee.com/yadong.zhang/JustAuth/releases/v1.14.0)开始JustAuth将不会默认集成hutool-http,如果开发者的项目是全新的或者项目内没有集成HTTP实现工具,请自行添加对应的HTTP实现类,备选依赖如下:
-
-- hutool-http
-
- ```xml
-
- cn.hutool
- hutool-http
- 5.2.5
-
- ```
-
-- httpclient
-
- ```xml
-
- org.apache.httpcomponents
- httpclient
- 4.5.12
-
- ```
-
-- okhttp
-
- ```xml
-
- com.squareup.okhttp3
- okhttp
- 4.4.1
-
- ```
-
-
-## API分解
-
-**JustAuth**的核心就是一个个的`request`,每个平台都对应一个具体的`request`类,所以在使用之前,需要就具体的授权平台创建响应的`request`
-
-```java
-// 创建授权request
-AuthRequest authRequest = new AuthGiteeRequest(AuthConfig.builder()
- .clientId("clientId")
- .clientSecret("clientSecret")
- .redirectUri("redirectUri")
- .build());
-```
-
-所有可用的`Request`列表请参考:[已集成的平台](https://docs.justauth.whnb.wang/#/README?id=已集成的平台)
-
-### 获取授权链接
-
-```java
-String authorizeUrl = authRequest.authorize("state");
-```
-获取到`authorizeUrl`后,可以手动实现redirect到`authorizeUrl`上
-
-**伪代码**
-
-```java
-/**
- *
- * @param source 第三方授权平台,以本例为参考,该值为gitee(因为上面声明的AuthGiteeRequest)
- */
-@RequestMapping("/render/{source}")
-public void renderAuth(@PathVariable("source") String source, HttpServletResponse response) throws IOException {
- AuthRequest authRequest = getAuthRequest(source);
- String authorizeUrl = authRequest.authorize(AuthStateUtils.createState());
- response.sendRedirect(authorizeUrl);
-}
-```
-
-注:`state`建议必传!`state`在`OAuth`的流程中的主要作用就是保证请求完整性,防止**CSRF**风险,此处传的`state`将在回调时传回
-
-### 登录(获取用户信息)
-
-```java
-AuthResponse response = authRequest.login(callback);
-```
-
-授权登录后会返回code(auth_code(仅限支付宝)、authorization_code(仅限华为))、state,1.8.0版本后,用`AuthCallback`类作为回调接口的入参
-
-**伪代码**
-
-```java
-/**
- *
- * @param source 第三方授权平台,以本例为参考,该值为gitee(因为上面声明的AuthGiteeRequest)
- */
-@RequestMapping("/callback/{source}")
-public Object login(@PathVariable("source") String source, AuthCallback callback) {
- AuthRequest authRequest = getAuthRequest(source);
- AuthResponse response = authRequest.login(callback);
- return response;
-}
-```
-
-**注:第三方平台中配置的授权回调地址,以本文为例,在创建授权应用时的回调地址应为:`[host]/callback/gitee`**
-
-### 刷新token
-
-注:`refresh`功能,并不是每个平台都支持
-
-```java
-AuthResponse response = authRequest.refresh(AuthToken.builder().refreshToken(token).build());
-```
-
-**伪代码**
-
-```java
-/**
- *
- * @param source 第三方授权平台,以本例为参考,该值为gitee(因为上面声明的AuthGiteeRequest)
- * @param token login成功后返回的refreshToken
- */
-@RequestMapping("/refresh/{source}")
-public Object refreshAuth(@PathVariable("source") String source, String token){
- AuthRequest authRequest = getAuthRequest(source);
- return authRequest.refresh(AuthToken.builder().refreshToken(token).build());
-}
-```
-
-### 取消授权
-
-注:`revoke`功能,并不是每个平台都支持
-
-```java
-AuthResponse response = authRequest.revoke(AuthToken.builder().accessToken(token).build());
-```
-
-**伪代码**
-
-```java
-/**
- *
- * @param source 第三方授权平台,以本例为参考,该值为gitee(因为上面声明的AuthGiteeRequest)
- * @param token login成功后返回的accessToken
- */
-@RequestMapping("/revoke/{source}/{token}")
-public Object revokeAuth(@PathVariable("source") String source, @PathVariable("token") String token) throws IOException {
- AuthRequest authRequest = getAuthRequest(source);
- return authRequest.revoke(AuthToken.builder().accessToken(token).build());
-}
-```
-
-## 参考文章
-
-- [实现Gitee授权登录](http://t.cn/ExDKxQs)
-- [实现Github授权登录](http://t.cn/EJ0Fxqo)
-- [Spring Boot 快速集成第三方登录功能](http://t.cn/AiWWx5kH) : QQ、Github、微信、谷歌、微软、小米、企业微信
-- [集成企业微信](https://mp.weixin.qq.com/s?__biz=MzA3NDk3OTIwMg==&mid=2450633170&idx=2&sn=456b70742a86948a193c691f3e47b72e&chksm=8892933fbfe51a29c1da386a2252d4bf91bfbd14e1ac0b99b783763a0d12e2e4b2d7c4369933&token=482455242&lang=zh_CN#rd)
-
-## 配套项目
-
-- [JustAuth-demo](https://github.com/justauth/JustAuth-demo):普通版springboot项目demo
-- [jFinal版](https://github.com/xkcoding/jfinal-justauth-demo): Jfinal集成JustAuth的demo by [xkcoding](https://github.com/xkcoding)
-- [ActFramework版](https://github.com/xkcoding/act-justauth-demo): ActFramework 集成 JustAuth 的 demo by [xkcoding](https://github.com/xkcoding)
-- [Nutzboot版](https://github.com/EggsBlue/nutzboot-justauth-demo): NutzBoot集成JustAuth的demo by [蛋蛋](https://github.com/EggsBlue)
-- [Blade版](https://github.com/justauth/blade-justauth-demo): Blade集成JustAuth的demo
-
-## SpringBoot插件
-- [justauth-spring-boot-starter](https://github.com/xkcoding/justauth-spring-boot-starter): Spring Boot 集成 JustAuth 的最佳实践 by [xkcoding](https://github.com/xkcoding)
-- [justauth-spring-security-starter](https://github.com/justauth/justauth-spring-security-starter): JustAuth整合Spring security的 starter依赖 by [luoqiz](https://github.com/luoqiz)
diff --git a/docs/index.html b/docs/index.html
index c59de988e139745954a792e1781617763fcecba0..4495b27265b027793a25936758969be3beb318a5 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -12,126 +12,11 @@
-
-
-
-
-
-
- Please wait...
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-