From 6b758e0e1e29707ded81306f51ec325677f9cf7a Mon Sep 17 00:00:00 2001 From: "yadong.zhang" Date: Sun, 3 Dec 2023 21:50:50 +0800 Subject: [PATCH 1/2] =?UTF-8?q?:bulb:=20=E4=BF=AE=E6=94=B9=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/me/zhyd/oauth/request/AuthMicrosoftRequest.java | 2 +- .../oauth/request/AuthWeChatEnterpriseThirdQrcodeRequest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/me/zhyd/oauth/request/AuthMicrosoftRequest.java b/src/main/java/me/zhyd/oauth/request/AuthMicrosoftRequest.java index f8b90660..545f5e23 100644 --- a/src/main/java/me/zhyd/oauth/request/AuthMicrosoftRequest.java +++ b/src/main/java/me/zhyd/oauth/request/AuthMicrosoftRequest.java @@ -6,9 +6,9 @@ /** * 微软登录 + * update 2021-08-24 mroldx (xzfqq5201314@gmail.com) * * @author yangkai.shen (https://xkcoding.com) - * @update:2021-08-24 mroldx (xzfqq5201314@gmail.com) * @since 1.5.0 */ public class AuthMicrosoftRequest extends AbstractAuthMicrosoftRequest { diff --git a/src/main/java/me/zhyd/oauth/request/AuthWeChatEnterpriseThirdQrcodeRequest.java b/src/main/java/me/zhyd/oauth/request/AuthWeChatEnterpriseThirdQrcodeRequest.java index ed251965..57973f88 100644 --- a/src/main/java/me/zhyd/oauth/request/AuthWeChatEnterpriseThirdQrcodeRequest.java +++ b/src/main/java/me/zhyd/oauth/request/AuthWeChatEnterpriseThirdQrcodeRequest.java @@ -81,7 +81,7 @@ protected String doGetAuthorizationCode(String code) { /** * 获取token的URL * - * @return + * @return accessTokenUrl */ protected String accessTokenUrl() { return UrlBuilder.fromBaseUrl(source.accessToken()) From d62bb6eecfa19f1c02b5c633e3416c652e14c99a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Czhaolei=E2=80=9D?= <“zhaolei@lzzg365.com”> Date: Thu, 14 Mar 2024 16:53:02 +0800 Subject: [PATCH 2/2] change:[google oauth] api addr --- src/main/java/me/zhyd/oauth/config/AuthDefaultSource.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/me/zhyd/oauth/config/AuthDefaultSource.java b/src/main/java/me/zhyd/oauth/config/AuthDefaultSource.java index 35b835a7..9cbb437c 100644 --- a/src/main/java/me/zhyd/oauth/config/AuthDefaultSource.java +++ b/src/main/java/me/zhyd/oauth/config/AuthDefaultSource.java @@ -382,6 +382,7 @@ public Class getTargetClass() { }, /** * Google + * 端点地址:https://accounts.google.com/.well-known/openid-configuration */ GOOGLE { @Override @@ -391,12 +392,12 @@ public String authorize() { @Override public String accessToken() { - return "https://www.googleapis.com/oauth2/v4/token"; + return "https://oauth2.googleapis.com/token"; } @Override public String userInfo() { - return "https://www.googleapis.com/oauth2/v3/userinfo"; + return "https://openidconnect.googleapis.com/v1/userinfo"; } @Override