azure - 如何强制使用 Azure 帐户选择器

标签 azure authentication azure-active-directory google-authentication

我已经毫无问题地实现了 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/

相关文章:

javascript - 检查用户是否使用 PassportJS/ExpressJS 登录

ios - 如何响应异步事件(登录)?

c# - ASP.NET Core 2.0 Web API Azure Ad v2 token 授权不起作用

amazon-web-services - 如何安全地将日志发布到云端

azure - 如何配置一个azure函数在另一azure函数执行完成后开始执行?

python - 如何使用Python Azure SDK创建标签?

angularjs - 如何在 Id_token 中包含首选用户名声明

php - 如何在 Azure 中启用 PUT 请求?

r - 用于 R 身份验证的 twitteR 包 : error 401

azure - 服务主体(Azure 应用程序 Multi-Tenancy )是否可以使用 AZ CLI 向租户中的应用程序授予管理员同意?