From b24d4900246312fee3b6ddb54fa1bb39ab9772bd Mon Sep 17 00:00:00 2001 From: "yadong.zhang" Date: Mon, 4 Jan 2021 11:12:32 +0800 Subject: [PATCH] =?UTF-8?q?:arrow=5Fup:=20=E5=8D=87=E7=BA=A7=20`JustAuth`?= =?UTF-8?q?=20=E7=89=88=E6=9C=AC=EF=BC=9A1.15.9=EF=BC=8C=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E9=A3=9E=E4=B9=A6=E3=80=81=E4=BA=AC=E4=B8=9C=E3=80=81=E9=98=BF?= =?UTF-8?q?=E9=87=8C=E4=BA=91=E3=80=81=E5=96=9C=E9=A9=AC=E6=8B=89=E9=9B=85?= =?UTF-8?q?=E3=80=81=E4=BC=81=E4=B8=9A=E5=BE=AE=E4=BF=A1=E7=BD=91=E9=A1=B5?= =?UTF-8?q?=E7=AB=AF=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 4 ++++ README.md | 18 ++++++++++++++++++ pom.xml | 4 ++-- .../xkcoding/justauth/AuthRequestFactory.java | 12 +++++++++++- 4 files changed, 35 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 97ce078..2c2b36b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ ## 版本更新记录 +### 【1.3.5】2021-01-04 + +- 升级 `JustAuth` 版本:1.15.9,新增飞书、京东、阿里云、喜马拉雅、企业微信网页端登录 + ### 【1.3.4】2020-09-12 - 升级 `JustAuth` 版本:1.15.7,更新最新的 GitHub API diff --git a/README.md b/README.md index 98ba3bb..c2d0b5b 100644 --- a/README.md +++ b/README.md @@ -172,6 +172,24 @@ justauth: client-id: 10**********6 client-secret: 1f7d08**********5b7**********29e redirect-uri: http://oauth.xkcoding.com/demo/oauth/twitter/callback + XMLY: + client-id: 10**********6 + client-secret: 1f7d08**********5b7**********29e + redirect-uri: http://oauth.xkcoding.com/demo/oauth/xmly/callback + # 设备唯一标识ID + device-id: xxxxxxxxxxxxxx + # 客户端操作系统类型,1-iOS系统,2-Android系统,3-Web + client-os-type: 3 + # 客户端包名,如果 clientOsType 为1或2时必填。对Android客户端是包名,对IOS客户端是Bundle ID + #pack-id: xxxx + FEISHU: + client-id: 10**********6 + client-secret: 1f7d08**********5b7**********29e + redirect-uri: http://oauth.xkcoding.com/demo/oauth/feishu/callback + JD: + client-id: 10**********6 + client-secret: 1f7d08**********5b7**********29e + redirect-uri: http://oauth.xkcoding.com/demo/oauth/jd/callback cache: type: default ``` diff --git a/pom.xml b/pom.xml index c999f21..5069436 100644 --- a/pom.xml +++ b/pom.xml @@ -23,7 +23,7 @@ com.xkcoding.justauth justauth-spring-boot-starter - 1.3.4 + 1.3.5 justauth-spring-boot-starter https://github.com/xkcoding/justauth-spring-boot-starter @@ -72,7 +72,7 @@ 2.1.8.RELEASE - 1.15.7 + 1.15.9 5.4.0 diff --git a/src/main/java/com/xkcoding/justauth/AuthRequestFactory.java b/src/main/java/com/xkcoding/justauth/AuthRequestFactory.java index 7f3a068..e133d4b 100644 --- a/src/main/java/com/xkcoding/justauth/AuthRequestFactory.java +++ b/src/main/java/com/xkcoding/justauth/AuthRequestFactory.java @@ -203,7 +203,9 @@ public class AuthRequestFactory { case WECHAT_OPEN: return new AuthWeChatOpenRequest(config, authStateCache); case WECHAT_ENTERPRISE: - return new AuthWeChatEnterpriseRequest(config, authStateCache); + return new AuthWeChatEnterpriseQrcodeRequest(config, authStateCache); + case WECHAT_ENTERPRISE_WEB: + return new AuthWeChatEnterpriseWebRequest(config, authStateCache); case TAOBAO: return new AuthTaobaoRequest(config, authStateCache); case GOOGLE: @@ -240,6 +242,14 @@ public class AuthRequestFactory { return new AuthMeituanRequest(config, authStateCache); case TWITTER: return new AuthTwitterRequest(config, authStateCache); + case FEISHU: + return new AuthFeishuRequest(config, authStateCache); + case JD: + return new AuthJdRequest(config, authStateCache); + case ALIYUN: + return new AuthAliyunRequest(config, authStateCache); + case XMLY: + return new AuthXmlyRequest(config, authStateCache); default: return null; }