B2C Custom Policy - Redirect login error back to app

Matei 1 Reputation point
2021-07-19T15:07:58.047+00:00

During the b2c login flow, if a user cancels a step then he is automatically redirected to the api.error / globalexception page.

I would like to redirect the user back to my application, ideally this would result in an OnAuthenticationFailed event in the OpenIdConnectOptions.

Does anyone know if this can be achieved?

Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,882 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,777 questions
{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.