如何设置我在用户流AZ AD AD B2C中看到的屏幕
在本教程之后,我使用MSAL软件包在我的Angular应用中成功整合了B2C身份验证:
在样本角中配置身份验证... 直到步骤3
。 / login.microsoftonline.com/common as it says
使用租户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:
using tenant id:
And when I click the use another account -> sign in options only see github and signIn with a key
When the screen that I would like to see is this one (due to the identity providers):
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该检查如何使用用户流/自定义策略自定义接口。
您不仅可以自定义现有的用户体验(登录屏幕,密码重置等),还可以使用自定义策略创建自己的“旅程”。
您将这些自定义部署到您的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