且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用Google的OAuth 2.0强制单个帐户用户登录帐户?

更新时间:2023-12-04 16:17:19

将参数prompt=select_account添加到您的授权请求中.

Add the parameter prompt=select_account to your authorization request.

这将导致始终显示帐户选择器,即使用户仅登录到一个帐户也是如此.用户将能够从他们的帐户中进行选择,或添加一个新帐户.

This will cause the account chooser to always be shown, even if the user is only logged in to one account. Users will be able to select from their accounts, or add a new one.

例如: 查看全文