mirror of
https://gitee.com/yadong.zhang/JustAuth.git
synced 2025-12-06 08:48:27 +08:00
commit
74be7d4c8b
@ -382,6 +382,7 @@ public enum AuthDefaultSource implements AuthSource {
|
||||
},
|
||||
/**
|
||||
* Google
|
||||
* 端点地址:https://accounts.google.com/.well-known/openid-configuration
|
||||
*/
|
||||
GOOGLE {
|
||||
@Override
|
||||
@ -391,12 +392,12 @@ public enum AuthDefaultSource implements AuthSource {
|
||||
|
||||
@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
|
||||
|
||||
@ -6,9 +6,9 @@ import me.zhyd.oauth.config.AuthDefaultSource;
|
||||
|
||||
/**
|
||||
* 微软登录
|
||||
* 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 {
|
||||
|
||||
@ -81,7 +81,7 @@ public class AuthWeChatEnterpriseThirdQrcodeRequest extends AbstractAuthWeChatEn
|
||||
/**
|
||||
* 获取token的URL
|
||||
*
|
||||
* @return
|
||||
* @return accessTokenUrl
|
||||
*/
|
||||
protected String accessTokenUrl() {
|
||||
return UrlBuilder.fromBaseUrl(source.accessToken())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user