I'm trying to force password reset after the first logon (in Azure ADB2C) using the Custom Policies as explained here. I'm able to login and get a proper JWT Token but I didn't manage to let it works. I followed different paths:
- I tried to merge the XML files (taken from the github repo) with the ones taken from "SocialAndLocalAccounts starter pack" (as suggested in the readme.md)
- I found this thread and I tried to apply all the suggested solutions (e.g.: copy-and-paste the XML config file or set
forceChangePasswordNextSignIn
totrue
) - I know that Microsoft created a new scenario which let the user reset his password, but this feature is currently only available for User Flows (and I would like to use the "Custom Policies").
- I tried to change the
extension_00000000000000000000000000000000_mustResetPassword
and set it totrue
(where the zeros are the clientId of the b2c extension app)
The behaviour that I expect from the procedure is: when a new user log in for the first time, a "change password page" should be displayed and the three fields "Old Password", "New Password", "Confirm Password" should be promted.
At the moment when a new user write the (correct) username and password and login into the service for the first time, no "change password page" is displayed.
Do you have the same issues? How did you solved it? Thanks for your time. Bye