【发布时间】:2021-07-05 05:38:36
【问题描述】:
我想为使用 Azure AD B2C 在 Azure Web 应用上运行的 Web 应用程序添加身份验证。
为此,我遵循了以下步骤:
- 在 Azure AD B2C 上创建租户
- 添加应用注册和客户端密钥
- 添加用户流
- 从 Azure Web Apps 上的“身份验证”(左侧面板上),我选择 Microsoft 作为身份提供者,并根据前面步骤中获得的值提供配置。
但是当我访问 Azure Web Apps url 时,我并没有被重定向到登录页面,而是收到以下消息。
{"code":401,"message":"An error of type 'unauthorized_client' occurred during the login process: 'AADB2C90057: The provided application is not configured to allow the 'OAuth' Implicit flow.\r\nCorrelation ID: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\r\nTimestamp: 2021-04-09 10:06:00Z\r\n'"}
另外,在识别提供者的编辑页面中,它说Application with ID xxxxxxxxxxxxxxxx not found in the current tenant. Tenant ID: yyyyyyyyyyyyyyyyy.
这显然意味着我在 Azure B2C 租户上注册的应用程序与 Azure Web Apps 所链接的应用程序不在同一个租户上。
我的问题是“如何通过 Azure AD B2C 使用其“身份验证”功能在 Azure Web App 上添加身份验证?”。 “身份验证”功能的 Microsoft 身份提供者是否仅支持与 Azure Web Apps 位于同一租户的客户端?
【问题讨论】:
标签: azure azure-active-directory azure-ad-b2c azure-webapps