Azure B2C Graph API-强制用户在下次登录时更改密码 [英] Azure B2C Graph API - Forcing a user to change passwords on next login

查看:41
本文介绍了Azure B2C Graph API-强制用户在下次登录时更改密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找使用图表API来强制用户在下次登录时重置其密码.

I am looking to use the graph api in order to force a user to reset his/her password on next login.

如果我将用户对象ID与"forceChangePasswordNextLogin"一起发送:true ,我将获得成功的响应.但是,实际上并未将用户帐户设置为强制更改密码.

If I send the user object Id along with "forceChangePasswordNextLogin": true I get a successful response. However, the user's account is not actually set to force a password change.

我可以提示用户更改密码的唯一方法是,如果我还与forceChangePasswordNextLogin一起发送密码值.显然,这样做的问题是现有用户不知道当前密码"的值,也无法更改密码.

The only way I can get the user prompted to change passwords is if I also send a value for the password along with forceChangePasswordNextLogin. Obviously the problem with this is that an existing user would not know the value of the "current password" and would not be able to change passwords.

推荐答案

也许您的问题与该问题有关.

Perhaps your issue is related to that own Azure AD B2C SignUp-SignIn policy with MFA turned on - Custom Login Page.

简而言之,它说明 forceChangePasswordNextLogin 仅与登录策略兼容.如果您使用登录/注册策略,则必须自己实现该功能.

In short it explains that forceChangePasswordNextLogin is only compatible with sign-in policies. If you are using a sign-in/sign-up policy, you will have to implement the functionality yourself.

这篇关于Azure B2C Graph API-强制用户在下次登录时更改密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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