mirror of
https://gitee.com/yadong.zhang/JustAuth.git
synced 2025-12-06 16:58:24 +08:00
commit
74be7d4c8b
@ -382,6 +382,7 @@ public enum AuthDefaultSource implements AuthSource {
|
|||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Google
|
* Google
|
||||||
|
* 端点地址:https://accounts.google.com/.well-known/openid-configuration
|
||||||
*/
|
*/
|
||||||
GOOGLE {
|
GOOGLE {
|
||||||
@Override
|
@Override
|
||||||
@ -391,12 +392,12 @@ public enum AuthDefaultSource implements AuthSource {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String accessToken() {
|
public String accessToken() {
|
||||||
return "https://www.googleapis.com/oauth2/v4/token";
|
return "https://oauth2.googleapis.com/token";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String userInfo() {
|
public String userInfo() {
|
||||||
return "https://www.googleapis.com/oauth2/v3/userinfo";
|
return "https://openidconnect.googleapis.com/v1/userinfo";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@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)
|
* @author yangkai.shen (https://xkcoding.com)
|
||||||
* @update:2021-08-24 mroldx (xzfqq5201314@gmail.com)
|
|
||||||
* @since 1.5.0
|
* @since 1.5.0
|
||||||
*/
|
*/
|
||||||
public class AuthMicrosoftRequest extends AbstractAuthMicrosoftRequest {
|
public class AuthMicrosoftRequest extends AbstractAuthMicrosoftRequest {
|
||||||
|
|||||||
@ -81,7 +81,7 @@ public class AuthWeChatEnterpriseThirdQrcodeRequest extends AbstractAuthWeChatEn
|
|||||||
/**
|
/**
|
||||||
* 获取token的URL
|
* 获取token的URL
|
||||||
*
|
*
|
||||||
* @return
|
* @return accessTokenUrl
|
||||||
*/
|
*/
|
||||||
protected String accessTokenUrl() {
|
protected String accessTokenUrl() {
|
||||||
return UrlBuilder.fromBaseUrl(source.accessToken())
|
return UrlBuilder.fromBaseUrl(source.accessToken())
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user