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 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())