更改Azure AD B2C注册或登录策略的忘记密码链接 [英] Changing Azure AD B2C Sign-up or sign-in policies's forgot password link

查看:104
本文介绍了更改Azure AD B2C注册或登录策略的忘记密码链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用登录策略时,有一个密码重置链接=>无法访问您的帐户".通过单击此链接,用户可以使用Microsoft的即用型密码重置过程,在该过程中,将为他们提供CAPTCHA以接收验证码,而我可能需要MFA.

我想在统一的注册或登录"策略上重用此功能,该策略为此提供了一个不同的链接=>忘记密码".我也希望该链接也重定向到Microsoft的即用型密码重置功能.<​​/p>

我不确定是否可以.如果无法做到这一点,我可以在注册或登录"响应处理程序上构造链接.我只想看看是否有人以前做过这种方法,或者这种方法不好.

解决方案

我可以使用链接重设密码,但最后会出现错误. 我所做的是通过请求登录"政策并提取无法访问您的帐户"链接并附加我的公司品牌.

这一直持续到最后一步.它向我展示了我的公司品牌.它允许我重设密码,但最终会出现错误.而且我无法自动登录.如果我使用重置密码重新登录,则可以使用.

我意识到获取链接是不够的,因为链接中的CTX查询字符串是针对登录"策略生成的,因此我尝试在其中使用它 注册或登录".长话短说,无法访问您的帐户"用于登录"策略,不能用于其他策略.

When using Sign-in policies, there is a password reset link => "Can’t access your account". By click on this link, the users get Microsoft's out-of-the-box password reset process in which they are presented with a CAPTCHA to receive validation code and for which I can require MFA.

I want to reuse this feature on the unified "Sign-up or sign-in" policies which present a different link for this => "Forgot your password". I want that link to redirect to Microsoft's out-of-the-box password reset functionality as well.

I am not sure if this possible. If this is not possible, can I construct the link on "Sign-up or sign-in" response handler. I just want to see if anyone done this before or this not good approach.

解决方案

I could use the link to reset password but I will get error at the end. What I did was by making a request to "Sign-in" policy and extract the "Can’t access your account" link and append my company brand.

This worked until the last step. It showed me my company brand. It allowed me to reset my password but at the end it will through error. And I was not be able to auto login. If I re-login with reset password it works.

I realized that getting the link is not enough as the CTX query string in the link is generated for for "Sign-in" policy and I am trying to use it in "Sign-up or sign-in". Long story short, "Can’t access your account" is for "Sign-in" Policy and can't be used for other policy.

这篇关于更改Azure AD B2C注册或登录策略的忘记密码链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆