mirror of
https://gitee.com/yadong.zhang/JustAuth.git
synced 2025-12-07 01:08:24 +08:00
Merge branch 'pr_19' into dev
# Conflicts: # src/main/java/me/zhyd/oauth/request/AuthGoogleRequest.java
This commit is contained in:
commit
e15ecbe91e
@ -1,6 +1,7 @@
|
|||||||
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 {
|
|||||||
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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user