mirror of
https://gitee.com/yadong.zhang/JustAuth.git
synced 2025-12-06 16:58:24 +08:00
修复通过google登录一次后,重新用google登录无法切换谷歌账户的问题。通过加prompt=select_account参数,可以每次当用户在登录页选择谷歌登录后,进入谷歌账户选择页面。prompt参数详见:https://m.imooc.com/wenda/detail/608928
This commit is contained in:
parent
8b3bc42678
commit
9c332d6d16
@ -79,6 +79,7 @@ public class AuthGoogleRequest extends AuthDefaultRequest {
|
|||||||
.queryParam("scope", "openid%20email%20profile")
|
.queryParam("scope", "openid%20email%20profile")
|
||||||
.queryParam("redirect_uri", config.getRedirectUri())
|
.queryParam("redirect_uri", config.getRedirectUri())
|
||||||
.queryParam("state", getRealState(state))
|
.queryParam("state", getRealState(state))
|
||||||
|
.queryParam("prompt","select_account")
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user