azure-ad-b2c / samples

Azure AD B2C custom policy solutions and samples.
846 stars 598 forks source link

Implementing Email MFA for Sign-In Using SendGrid #634

Open nandhu opened 2 months ago

nandhu commented 2 months ago

Description:

I have successfully implemented email Multi-Factor Authentication (MFA) for user sign-up using SendGrid, following the example provided at policies/custom-email-verifcation-displaycontrol/policy/SendGrid/DisplayControl_TrustFrameworkExtensions.xml. The sign-up process works perfectly, and users receive an email to complete MFA verification as expected.

However, I am now attempting to implement the same email MFA functionality for user sign-in. To achieve this, I added a new <TechnicalProfile Id="SelfAsserted-LocalAccountSignin-Email"> in the DisplayControl_TrustFrameworkExtensions.xml, using a similar configuration to <TechnicalProfile Id="LocalAccountSignUpWithLogonEmail">. Despite this, the MFA process for sign-in is not working correctly.

Request for Help:

Could you please provide guidance on how to properly configure email MFA for the sign-in process using SendGrid? Are there additional steps or configurations required that differ from the sign-up process?

Thank you in advance for your assistance!