Unable to get an OTP code from sendgrid. Error message when trying to log in with MFA using custom policies in sendgrid. Azure AD B2C

Aziz 0 Reputation points
2024-09-30T12:56:22.7233333+00:00

Hi,

I'm unable to get an OTP code from sendgrid using a dynamic template created in sendgrid portal. I used these samples:

https://github.com/azure-ad-b2c/samples/tree/master/policies/custom-email-verifcation-displaycontrol/policy/SendGrid

And followed this documentation:

https://learn.microsoft.com/en-us/azure/active-directory-b2c/custom-email-sendgrid?pivots=b2c-custom-policy

After successfuly logging in, I was expecting to get an OTP via email (as part of MFA) but in stead, I get this error message on the page:

Sorry, but we're having trouble signing you in.

We track these errors automatically, but if the problem persists feel free to contact us. In the meantime, please try again.

Correlation ID: d43c0d19-52cc-424b-88e0-8e529533b7eb

Timestamp: 2024-09-30 12:42:08Z

AADB2C: An exception has occurred.

And in the console log i see this error message:

POST https://<MYTENANTID>.b2clogin.com/<MYTENANTID>.onmicrosoft.com/B2C_1A_SIGNUP_SIGNIN/client/perftrace?tx=d43c0d19-52cc-424b-88e0-8e529533b7eb&p=null 404 (Not Found)

<MYTENANTID> is replaced with the actual tenantid, but for privacy reasons sensored.

I've been struggling with this error for days now, what am I missing?

Edit, Now im getting this error msg in the console log: Error during MSAL redirect handling or initialization: ServerError: server_error: AADB2C: An exception has occurred. Correlation ID: 2186a6f1-c27c-4f1e-8b74-31e4e0b27301 Timestamp: 2024-10-01 12:00:54Z

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,798 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.