- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试了解如何使用 Azure AD B2C 密码重置。
似乎有多种方法可以处理密码重置。这些有什么区别呢?这些之间有价格差异吗?其中一些功能是 Azure AD 的功能,而另一些功能是 Azure AD B2C 的功能吗?为什么下面的方法 3 似乎不起作用?
通过 Azure B2C 用户流(策略)。
通过 Azure Active Directory 自助服务密码重置。可通过 https://passwordreset.microsoftonline.com 访问。这允许用户通过个人资料中存储的任何电子邮件地址重置密码。
用户个人资料上的重置密码按钮。这提供了一个临时密码,但是临时密码似乎不起作用。
最佳答案
#AAD B2C ≠ AAD ===> AAD B2C 用户 ≠ AAD 用户
目前,我们仅支持两种在一般场景下重置 Azure AD B2C 用户密码的方法:
使用 Azure AD B2C 密码重置策略/用户流程进行自助重置密码 (SSPR)。
管理员帮助用户使用 Azure AD Graph API 重置密码:https://learn.microsoft.com/en-us/previous-versions/azure/ad/graph/api/users-operations#reset-a-users-password--
您的问题的答案:
What is the difference between these? Is there is a price differencebetween these? Are some of these features of Azure AD, whilst some arefeatures of Azure AD B2C?
密码重置政策/用户流程适用于 AAD B2C 用户。您可以直接使用它。 AAD B2C 用户可以使用它自行重置密码。它也是 SSPR 的一种。
Azure Active Directory 自助服务密码重置。一般来说,它是针对企业用户的。如this feature仅适用于 V1 登录用户流程仅,我不建议您使用这种方式。
用户个人资料上的重置密码按钮。仅适用于 AAD(组织/企业)用户。 AAD B2C 用户请勿使用此按钮。
Why does method 3 below not appear to work?
正如我在上面提到的,此功能仅适用于 Azure AD 用户。不是 AAD B2C 用户。因此,您无法在此处重置B2C用户的密码。
正如 Alex 所说,AAD B2C 用户不是 Azure AD 用户。 B2C用户适用于2c场景。普通 Azure AD 用户适用于组织/企业场景。
您也可以引用我对What's the difference between Azure AD B2C tenant and normal Azure AD tenant?的回答
<小时/>有关 B2C 密码重置策略如何运作的更多信息:
点击“注册/加入”策略中的“忘记密码”按钮后,AAD B2C 将向应用程序发送一条包含“AADB2C90118”的消息。
例如,在 ASP.NET MVC Web App 中,那么它应该挑战
private Task OnAuthenticationFailed(AuthenticationFailedNotification<OpenIdConnectMessage, OpenIdConnectAuthenticationOptions> notification)
{
notification.HandleResponse();
// Handle the error code that Azure AD B2C throws when trying to reset a password from the login page
// because password reset is not supported by a "sign-up or sign-in policy"
if (notification.ProtocolMessage.ErrorDescription != null && notification.ProtocolMessage.ErrorDescription.Contains("AADB2C90118"))
{
// If the user clicked the reset password link, redirect to the reset password route
notification.Response.Redirect("/Account/ResetPassword");
}
}
这意味着应用程序收到此消息后会将其重定向到/Account/ResetPassword
。
/Account/ResetPassword
是在帐户 Controller 中定义的。应根据您定义的密码重置策略名称来确定。
public void ResetPassword()
{
// Let the middleware know you are trying to use the reset password policy (see OnRedirectToIdentityProvider in Startup.Auth.cs)
HttpContext.GetOwinContext().Set("Policy", Startup.ResetPasswordPolicyId);
// Set the page to redirect to after changing passwords
var authenticationProperties = new AuthenticationProperties { RedirectUri = "/" };
HttpContext.GetOwinContext().Authentication.Challenge(authenticationProperties);
return;
}
关于Azure AD B2C 密码重置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54787974/
我有一个场景,我们必须通过 Azure AD 对企业用户进行身份验证,但通过 Azure AD B2C 对外部用户进行身份验证——所有这些都来自同一个登录屏幕。 有一些 Web 应用程序将共享此功能。
在使用 Azure AD B2C 和 Azure AD B2B 之前,我通常会将应用程序添加到我们租户的 Azure AD 中,并且 Office 365 用户可以使用其帐户 (SSO) 访问应用程序
当 Azure Active Directory 信任访问本地 Active Directory 用户时,我们是否可以使用本地 AD 用户名(域限定的 sam 帐户名称,例如:cosmos\brahm
什么是在网站上展示广告的好托管广告管理器? 我听说过OpenX ,但从未使用过。 最佳答案 我们使用名为 Ad Serving Solutions http://www.adservingsoluti
是否可以将用户从云 Azure Active Directory 同步到本地 AD? On Premises 这里有点错误,因为它实际上是 Azure 中的虚拟网络,带有 Windows Server
我正在关注这里的答案:Multi-Tenant Azure AD Auth in Azure AD B2C with Custom Policies 以及这里的演练:https://github.co
我正在尝试使用/common Azure AD 端点在 Azure AD B2C 中使用 Azure AD Auth。根据How to sign in any Azure Active Directo
来自 Mercurial 文档: The manifest is the file that describes the contents of the repository at a particu
我正在尝试将 firebase admob 与 React Native 集成到我的应用程序中,一切都适用于 testID横幅 ('ca-app-pub-3940256099942544/293473
我有一个应用程序需要根据其本地 AD 通用名称来过滤权限。几点注意事项: Azure AD Connect 正在 OnPrem AD 和 Azure 之间同步数据 我已成功将登录用户的组信息从 Azu
我正在使用 blogspot 平台并在我的网站上使用了 Google Adsense。我想对齐一个自动 Adsense 广告,它根本不居中,而带有代码的广告则完全没有问题。它只是自动广告,有人可以帮助
为什么redirect URL必须完全匹配?在域级别进行匹配是否不足以提供适当的安全性? 如果我有数百条路径怎么办? 示例网址: https://myawesomesite.com https://m
我即将创建一个新的 Azure AKS 群集,并且希望将 AKS 与 Azure Key Vault 集成。几个月前,在学习阶段,我看到需要使用Azure AD pod管理的身份来做到这一点,但现在我
我正在尝试配置我的 Azure AD 以同步我的本地 AD DS,如果在 Microsoft Azure AD 中添加任何用户,它应该自动在我的本地 AD 中注册。 我已创建 Azure AD 并配置
我有大约 50 个用户的 Azure AD。这些用户是我们购买Office365时创建的。假设 Azure AD 上的域是 example.com。 ([email protected])在本地,我们
我正在尝试获取组 Azure AD 的名称,Azure 登录 (openId) 后的内部 token 我收到 json 格式的组 ID,但我需要组名称。 登录后的Json: Claims 尝试使用Gr
我们希望将 Azure AD B2C 用于我们的 Web 应用程序,以允许用户使用其公司 ADFS 帐户登录。 根据Azure Active Directory B2C: Add ADFS as a
首先,我无法了解为什么需要这些数据,也无法了解有关网络的细节。您必须相信我,除了运行 LDAP 查询的 PowerShell 脚本之外,没有其他方法可以获取这些数据。 我正在使用具有多个林和多个域的网
我是一个相当新的 PS 用户...正在寻求有关 powershell 脚本的帮助来获取用户所属的安全组列表。 描述我需要什么: 我有包含许多用户(samaccountnames)的输入列表(txt 文
我有两个要存储在目录中以供我的应用程序使用的声明。这些内容不可供用户编辑,但可用于应用程序从 token 中读取。 内置策略可以检索声明,但是,使用自定义策略检索这些声明没有取得任何成功。 通读文章“
我是一名优秀的程序员,十分优秀!