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
339 stars 396 forks source link

Sign in existing Local user returns "The username or password provided in the request are invalid." #97

Open NathanTrost opened 3 years ago

NathanTrost commented 3 years ago

I'm setting up a flow for local accounts and I'm unable to get anything working in regards to signing in with this starter pack.

I had modified the original xml files in 'Local' to get the current functionality, by updating to the latest page identifiers. This was when I realized that while I could sign up fine, any method I tried to sign in with would result in the error, "The username or password provided in the request are invalid." I've tried with a pure copy of Base.xml, only including my tenant name, same thing.

It seems like these xml files are quite a bit out of date and since these files and the your docs seems to contradict in places it's really hard to to pinpoint where this problem is coming from.

bschreder commented 3 years ago

Have you seen these? https://github.com/azure-ad-b2c/samples

carlosharry commented 3 years ago

I've had the same issue for about a week until I tried this: https://github.com/Azure-Samples/active-directory-b2c-custom-policy-starterpack/issues/22#issuecomment-740521529

johnfabian commented 3 years ago

I followed the guide to a tee and Facebook login works, I can create a local login and I'm able to reset the local login password but I can't login with local accounts with custom policies. I have the client_id and resource_id set correctly but local logins won't work.

UPDATE: I realized in the documentation as I read it again for the 1001th time that it is missing the part of granting API scope to the Proxy application as well.

Currently says " Now, grant permissions to the API scope you exposed earlier in the IdentityExperienceFramework registration:

I did he same for IdentityExperienceFrameworkProxy and it all works now.

JasSuri commented 2 years ago

Best to use the automated tool to setup the starter pack here.