1
0
mirror of synced 2025-12-13 09:47:55 +08:00

⬆️ 升级 JustAuth 版本:1.15.9,新增飞书、京东、阿里云、喜马拉雅、企业微信网页端登录

This commit is contained in:
yadong.zhang
2021-01-04 11:12:32 +08:00
parent 4250bdcf0c
commit b24d490024
4 changed files with 35 additions and 3 deletions

View File

@@ -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

View File

@@ -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
```

View File

@@ -23,7 +23,7 @@
<groupId>com.xkcoding.justauth</groupId>
<artifactId>justauth-spring-boot-starter</artifactId>
<version>1.3.4</version>
<version>1.3.5</version>
<name>justauth-spring-boot-starter</name>
<url>https://github.com/xkcoding/justauth-spring-boot-starter</url>
@@ -72,7 +72,7 @@
<!--SpringBoot版本-->
<spring-boot.version>2.1.8.RELEASE</spring-boot.version>
<!--JustAuth版本-->
<justauth.version>1.15.7</justauth.version>
<justauth.version>1.15.9</justauth.version>
<hutool.version>5.4.0</hutool.version>
</properties>

View File

@@ -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;
}