修复通过google登录一次后,重新用google登录无法切换谷歌账户的问题。通过加prompt=select_account参数,可以每次当用户在登录页选择谷歌登录后,进入谷歌账户选择页面。prompt参数详见:https://m.imooc.com/wenda/detail/608928

This commit is contained in:
tanghao 2020-07-22 13:52:00 +08:00
parent 8b3bc42678
commit 9c332d6d16

View File

@ -79,6 +79,7 @@ public class AuthGoogleRequest extends AuthDefaultRequest {
.queryParam("scope", "openid%20email%20profile")
.queryParam("redirect_uri", config.getRedirectUri())
.queryParam("state", getRealState(state))
.queryParam("prompt","select_account")
.build();
}