I pulled the code provided here but its built using an old version of the “Microsoft.Identity.Client” nuget and is essentially broken.

After working through the errors:

‘authority’ should be in Uri format Parameter name: authority API does not accept client id as a user-provided scope No suitable identity providers found

Issue #1: I fixed the first problem by making sure my authority string followed the following format:

https://login.microsoftonline.com/xyz.onmicrosoft.com

Issue #2:

Issue #3:

I created the SignInAndSignUp and PasswordReset Policies before I changed the identity provider mode from E-Mail to Username. This cause the identity provider to be silently unlinked inside the policy.

https://social.msdn.microsoft.com/Forums/en-US/6937e772-0da7-4857-8eb2-25674049e1c5/azure-ad-b2c-no-suitable-claims-providers?forum=WindowsAzureAD