Skip to content

Commit

Permalink
Merge pull request #198 from GitHubzhaolei/master
Browse files Browse the repository at this point in the history
change:变更Google 端点地址
  • Loading branch information
zhangyd-c authored Jun 23, 2024
2 parents 02bd057 + d62bb6e commit 74be7d4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/main/java/me/zhyd/oauth/config/AuthDefaultSource.java
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ public Class<? extends AuthDefaultRequest> getTargetClass() {
},
/**
* Google
* 端点地址:https://accounts.google.com/.well-known/openid-configuration
*/
GOOGLE {
@Override
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

/**
* 微软登录
* update 2021-08-24 mroldx ([email protected])
*
* @author yangkai.shen (https://xkcoding.com)
* @update:2021-08-24 mroldx ([email protected])
* @since 1.5.0
*/
public class AuthMicrosoftRequest extends AbstractAuthMicrosoftRequest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ protected String doGetAuthorizationCode(String code) {
/**
* 获取token的URL
*
* @return
* @return accessTokenUrl
*/
protected String accessTokenUrl() {
return UrlBuilder.fromBaseUrl(source.accessToken())
Expand Down

0 comments on commit 74be7d4

Please sign in to comment.