From 694bbf1b010d93404e3bfb4824d90e9ddfaebebb Mon Sep 17 00:00:00 2001 From: "yadong.zhang" Date: Sat, 14 Dec 2024 17:32:48 +0800 Subject: [PATCH 1/2] =?UTF-8?q?:memo:=20=E7=BC=96=E5=86=99=E6=96=87?= =?UTF-8?q?=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOGS.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/CHANGELOGS.md b/CHANGELOGS.md index e8b9403..6f92850 100644 --- a/CHANGELOGS.md +++ b/CHANGELOGS.md @@ -3,14 +3,14 @@ ### 2024/12/14 - 新增 - - 添加`微信小程序`登录能力。 - - 添加`支付宝证书模式`登录能力(原支持的公钥登录模式依然可用)。 - - 添加`appleid`社交登录能力。 [Github#192](https://github.com/justauth/JustAuth/pull/192) + - 添加`微信小程序`登录能力,对接文档:[点击查看](https://justauth.cn/guide/oauth/wechat_mini_program/)。 + - 添加`支付宝证书模式`登录能力(原支持的公钥登录模式依然可用),对接文档:[点击查看](https://justauth.cn/guide/oauth/alipay_cert)。 + - 添加`appleid`社交登录能力,对接文档:[点击查看](https://justauth.cn/guide/oauth/appleid/)。 [Github#192](https://github.com/justauth/JustAuth/pull/192) - 添加`QQ小程序`社交登录能力。 [Github#223](https://github.com/justauth/JustAuth/pull/223) - 添加`figma`社交登录能力。 [Gitee#41](https://gitee.com/yadong.zhang/JustAuth/pulls/41) - - 添加新版`企业微信扫码`登录能力。 [Github Issue#165](https://github.com/justauth/JustAuth/issues/165) - - 添加新版`钉钉扫码`登录能力。 [Gitee Issue#I73FZL](https://gitee.com/yadong.zhang/JustAuth/issues/I73FZL) - - 添加新版`华为`登录能力,原`AuthHuaweiRequest`会在后面版本被弃用,如有使用,请切换到`AuthHuaweiV3Request` + - 添加新版`企业微信扫码`登录能力,对接文档:[点击查看](https://justauth.cn/guide/oauth/wechat_enterprise_qrcode_v2/)。 [Github Issue#165](https://github.com/justauth/JustAuth/issues/165) + - 添加新版`钉钉扫码`登录能力,对接文档:[点击查看](https://justauth.cn/guide/oauth/dingtalk_v2/)。 [Gitee Issue#I73FZL](https://gitee.com/yadong.zhang/JustAuth/issues/I73FZL) + - 添加新版`华为`登录能力,对接文档:[点击查看](https://justauth.cn/guide/oauth/huawei_v3/),原`AuthHuaweiRequest`会在后面版本被弃用,如有使用,请切换到`AuthHuaweiV3Request` - 优化 - 修复文档错误。[Github #222](https://github.com/justauth/JustAuth/pull/222) - 更新 Google 端点地址。[Github #198](https://github.com/justauth/JustAuth/pull/198) -- Gitee From 83e7be77398f7c8a562e1bf2c3d02db1ee3568fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E5=85=88=E7=94=9F?= <523894408@qq.com> Date: Tue, 17 Dec 2024 08:31:27 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BC=81=E4=B8=9A=E5=BE=AE=E4=BF=A1?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E6=8E=88=E6=9D=83userid=E5=BA=94=E8=AF=A5?= =?UTF-8?q?=E4=B8=BA=E5=B0=8F=E5=86=99=EF=BC=8C=E8=A7=81=E6=96=87=E6=A1=A3?= =?UTF-8?q?https://developer.work.weixin.qq.com/document/path/98176?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 梁先生 <523894408@qq.com> --- .../oauth/request/AbstractAuthWeChatEnterpriseRequest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/me/zhyd/oauth/request/AbstractAuthWeChatEnterpriseRequest.java b/src/main/java/me/zhyd/oauth/request/AbstractAuthWeChatEnterpriseRequest.java index 9fd8067..974740f 100644 --- a/src/main/java/me/zhyd/oauth/request/AbstractAuthWeChatEnterpriseRequest.java +++ b/src/main/java/me/zhyd/oauth/request/AbstractAuthWeChatEnterpriseRequest.java @@ -52,10 +52,10 @@ public abstract class AbstractAuthWeChatEnterpriseRequest extends AuthDefaultReq JSONObject object = this.checkResponse(response); // 返回 OpenId 或其他,均代表非当前企业用户,不支持 - if (!object.containsKey("UserId")) { + if (!object.containsKey("userid")) { throw new AuthException(AuthResponseStatus.UNIDENTIFIED_PLATFORM, source); } - String userId = object.getString("UserId"); + String userId = object.getString("userid"); String userTicket = object.getString("user_ticket"); JSONObject userDetail = getUserDetail(authToken.getAccessToken(), userId, userTicket); -- Gitee