I am trying to configure the Microsoft Azure AD B2C identity provider in my Cognito user pool.
I am using the https://www.npmjs.com/package/@aws-amplify/auth library on my front-end.
I have named the new identity provider Microsoft
. I have also enabled it on my user pool. And I am passing the same (Microsoft
) to the Auth.federatedSignIn
method.
Now, when I try to authenticate the user with Microsoft, the user gets authenticated from the Microsoft side but the Cognito gives me the ?error_description=Invalid+ProviderName/Username+combination.+Please+check+again+&state=XmnGedOhmT99RnTlw0LypyMmqwCRbCZr&error=invalid_request
error.
This seems like a configuration issue to me but I am unable to figure out what is it.
Please help.