Azure-Samples / active-directory-b2c-custom-policy-starterpack

Azure AD B2C now allows uploading of a Custom Policy which allows full control and customization of the Identity Experience Framework
http://aka.ms/aadb2ccustom
MIT License
334 stars 394 forks source link

phone-number-passwordless signup/signin not working #119

Closed LuisDev99 closed 2 years ago

LuisDev99 commented 2 years ago

active-directory-b2c-custom-policy-starterpack/scenarios/phone-number-passwordless this custom policy starter pack is not working.

If you run the SignUpOrSignInWithPhoneOrEmail.xml policy flow, when signing in or signing up, it doesn't work properly.

When signing up, eventhough the user does not exists, after hitting continue it throws the following error:

image

After hitting continue tho, it creates the user somehow in B2C eventhough it threw an error in the signup screen. Now that the user exists, I try to login but it says that the user does not exists (eventhough he was created):

image

This means that the phone-number-passwordless starter pack policies are broken.........

Steps to reproduce:

  1. Use the custom policies files located at: active-directory-b2c-custom-policy-starterpack/scenarios/phone-number-passwordless

  2. Follow the other steps mentioned in here: active-directory-b2c-custom-policy-starterpack/scenarios/phone-number-passwordless/README.md

  3. Upload the policies and run the SignupOrSigninWithPhoneOrEmail.xml policy

  4. Create a user and try logging in (it won't work but the user will be created)

LuisDev99 commented 2 years ago

I solved this issue by using a tool that uploads some prebuilted policies that work perfectly instead of using and modifying the passwordless starter pack.

Complete explanation of the solution can be found in here: https://github.com/azure-ad-b2c/samples/issues/383#issuecomment-1082630591