我已经毫无问题地实现了 Azure AD 身份验证,但是每当用户拥有多个帐户时,我们还需要始终显示帐户选择器(即使只有一个帐户可用,基本上也会显示)
我们需要的正是这篇文章所描述的 ( Force google account chooser ),但使用的是 Azure AD。
你们知道有可能吗?无法修复 Azure 文档中与此相关的任何内容
最佳答案
您没有指定您正在使用哪个 SDK(如果有),但在较低级别,您将 &prompt=select_account
作为查询参数包含在向授权端点发出的请求中。这记录在此处:https://learn.microsoft.com/en-au/azure/active-directory/develop/v1-protocols-oauth-code
prompt
Indicate the type of user interaction that is required. Valid values are:
login: The user should be prompted to reauthenticate.
select_account: The user is prompted to select an account, interrupting single sign on. The user may select an existing signed-in account, enter their credentials for a remembered account, or choose to use a different account altogether.
consent: User consent has been granted, but needs to be updated. The user should be prompted to consent.
admin_consent: An administrator should be prompted to consent on behalf of all users in their organization
关于azure - 如何强制使用 Azure 帐户选择器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56585819/