如何设置我在用户流AZ AD AD B2C中看到的屏幕

发布于 2025-02-04 21:10:27 字数 1888 浏览 3 评论 0原文

在本教程之后,我使用MSAL软件包在我的Angular应用中成功整合了B2C身份验证:

在样本角中配置身份验证... 直到步骤3

。 / login.microsoftonline.com/common as it says

com / 房客ID我只能看到此屏幕 常见的:

使用租户ID: 当我单击使用另一个帐户时 - >登录选项仅参见GitHub和用钥匙签名

当我想看到的屏幕是一个(由于身份提供者)时:

我是否缺少AD中的一些链接或配置?

解决方案:

正如格雷格告诉我的那样,如果您想查看以用户流为azure(最后一个图片)显示的屏幕,则需要创建自定义策略:

创建用户流量 正如Link所说,Azure Active Directory B2C中的自定义策略b2c

创建两个应用程序,并使用您自己的租户名称获得启动包和配置。

如果您想添加更多的社交提供者

在我的情况下,当尝试上传XML时,有一个错误,此非常有用的工具对我有所帮助(您可以覆盖其创建的文件) 快速部署样品

,最后在需要Smal配置的权限字段中/your-tenant-name.b2clogin.com/your-tenant-name.onmicrosoft.com/b2c_1_your_custom_policy_name'

I've successfully integrated B2C authentication in my angular app using the MSAL package following this tutorial:

Configure authentication in a sample Angular... until step 3.

The "problem" comes when the authority has to be set like this: https:// login.microsoftonline.com/common as it says here instead of this https://your-tenant-name.b2clogin.com/your-tenant-name.onmicrosoft.com/b2c_1_susi_reset_v2

And setting the authority domain as common or using my tenant id I can only see this screens
Common:
enter image description here

using tenant id:
And when I click the use another account -> sign in options only see github and signIn with a key
enter image description here

When the screen that I would like to see is this one (due to the identity providers):
enter image description here

Am I missing some link or a configuration in my AD?

SOLUTION:

as Greg told me, if you want to see the screen that displays as user flow in azure (last pic) you need to create custom policies:

Create user flows and custom policies in Azure Active Directory B2C

Create the two more apps and get the starter pack and configure with your own tenant name as the link says.

if you want to add more social providers

In my case when trying to upload the xml's there was an error and this very helpful tool helped me (you can overwrite the files that it creates)
Quick deploy samples

And finally in the authority field that requires the SMAL config you set 'https://your-tenant-name.b2clogin.com/your-tenant-name.onmicrosoft.com/b2c_1_YOUR_CUSTOM_POLICY_NAME'

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

孤蝉 2025-02-11 21:10:27

您应该检查如何使用用户流/自定义策略自定义接口
您不仅可以自定义现有的用户体验(登录屏幕,密码重置等),还可以使用自定义策略创建自己的“旅程”。

您将这些自定义部署到您的Azure AD B2C租户,而不是在您的应用中。
这是链接

You should check how to customize interface with User Flows/Custom Policies.
Not only you can customize existing user experience (login screen, password reset, etc) but you may create your own "journeys" with Custom Policies.

You deploy those customization to your Azure AD B2C tenant , not in your app.
Here is link

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文