本文介绍了在React js应用程序中链接用户流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为azure adb2c中的用户流使用自己的自定义HTML页面.我在我的应用程序中使用react js adb2c库.在注册和登录v2用户流程中,有一个选项用于忘记密码,但是该链接不会将我带到我的密码重置用户流程.控制台错误:access_denied:AADB2C90118:用户忘记了密码.我没有在React js中获得任何示例来解决此问题.该错误是从react-azure-adb2c库抛出的.任何建议都会很棒.

I am using own custom HTML page for my user flows in azure adb2c. I am using react js adb2c libraries in my application. In signup and sign in v2 user flow, there is an option for forgot the password, but the link doesn't take me to my password reset user flow. Error in console: access_denied:AADB2C90118: The user has forgotten their password. I am not getting any samples in react js to solve this issue. This error is thrown from the react-azure-adb2c library. Any suggestion will be great.

推荐答案

我通过使用以下库解决了我的问题: https://github.com/leszekczajka/msal-b2c-react 它也可以指定我的resetPolicy选项,因此当我单击忘记密码"链接时,将重定向到我在adb2c中创建的重置用户流.谢谢大家的帮助.

I solved my problem by using this library: https://github.com/leszekczajka/msal-b2c-reactIt has option to specify my resetPolicy as well, so when i click on Forgot Password link, am redirected to my reset user flow which i created in adb2c. Thanks all for your help.

这篇关于在React js应用程序中链接用户流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-03 02:00