1
0
mirror of synced 2026-02-05 09:37:53 +08:00

Merge branch 'pr_19' into dev

# Conflicts:
#	src/main/java/me/zhyd/oauth/request/AuthGoogleRequest.java
This commit is contained in:
yadong.zhang
2020-07-22 17:54:51 +08:00

View File

@@ -1,6 +1,7 @@
package me.zhyd.oauth.request;
import com.alibaba.fastjson.JSONObject;
import me.zhyd.oauth.utils.HttpUtils;
import com.xkcoding.http.support.HttpHeader;
import me.zhyd.oauth.cache.AuthStateCache;
import me.zhyd.oauth.config.AuthConfig;
@@ -78,6 +79,7 @@ public class AuthGoogleRequest extends AuthDefaultRequest {
return UrlBuilder.fromBaseUrl(super.authorize(state))
.queryParam("access_type", "offline")
.queryParam("scope", this.getScopes(" ", false, AuthScopeUtils.getDefaultScopes(AuthGoogleScope.values())))
.queryParam("prompt","select_account")
.build();
}