azure b2c通过中间件忘记密码 [英] azure b2c forget password through middleware

查看:80
本文介绍了azure b2c通过中间件忘记密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 

Hi , 


我无法找到资源来使用azure b2c身份验证来进行密码重置,而无需重定向到Microsoft身份验证UI.谁能为我提供一个可以实施的解决方案 在中间件中.

I am unable to find resource to use azure b2c authentication for password reset without redirecting to microsoft authentiacation UI. Can anyone help me with a solution through which i can implement this in middleware. 

PS: 我必须使用azure函数在中间件中实现此功能.

PS :  I have to implement this in middleware using azure functions. 

 

 

谢谢

推荐答案

There are two different mechanisms for Password Reset in Azure AD B2C:

  1. 签名-在政策中:应用程序无需执行任何操作,请点击将用户自动重定向到通用的Microsoft品牌的密码重置页面.
  1. Sign-in Policy: No work required by the application, clicking on "I forgot my password" redirects the user automatically to a generic Microsoft-branded password reset page.

签名-上/登录政策:我忘记了密码"  重定向 用户使用错误代码返回到应用程序.应用程序需要检测请求中的错误代码,然后将用户进一步重定向到Azure AD B2C密码重置策略.密码重置策略可以广泛定制. (请参见

Sign-up/sign-in PolicyThis requires the application to do some extra work. Clicking on "I forgot my password" redirects the user back to the application with an error code. The application needs to detect the error code in the request and then further redirect the user to the Azure AD B2C Password Reset Policy. The Password reset policy can be customized extensively. (See User Voice.)

挂钩 并从

Going into more details as to how to implement the second approach, here's the code that hooks up into the AuthenticationFailed notification and redirects to your own PasswordReset controller action, from the B2C Sign-up/Sign-in quickstart, Startup.Auth.cs


这篇关于azure b2c通过中间件忘记密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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