提交 e15ecbe9 编写于 作者: 智布道's avatar 智布道 👁

Merge branch 'pr_19' into dev

# Conflicts:
#	src/main/java/me/zhyd/oauth/request/AuthGoogleRequest.java
package me.zhyd.oauth.request; package me.zhyd.oauth.request;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import me.zhyd.oauth.utils.HttpUtils;
import com.xkcoding.http.support.HttpHeader; import com.xkcoding.http.support.HttpHeader;
import me.zhyd.oauth.cache.AuthStateCache; import me.zhyd.oauth.cache.AuthStateCache;
import me.zhyd.oauth.config.AuthConfig; import me.zhyd.oauth.config.AuthConfig;
...@@ -78,6 +79,7 @@ public class AuthGoogleRequest extends AuthDefaultRequest { ...@@ -78,6 +79,7 @@ public class AuthGoogleRequest extends AuthDefaultRequest {
return UrlBuilder.fromBaseUrl(super.authorize(state)) return UrlBuilder.fromBaseUrl(super.authorize(state))
.queryParam("access_type", "offline") .queryParam("access_type", "offline")
.queryParam("scope", this.getScopes(" ", false, AuthScopeUtils.getDefaultScopes(AuthGoogleScope.values()))) .queryParam("scope", this.getScopes(" ", false, AuthScopeUtils.getDefaultScopes(AuthGoogleScope.values())))
.queryParam("prompt","select_account")
.build(); .build();
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册