Share via

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 Security | Microsoft Entra | Microsoft Entra External ID
Microsoft Security | Microsoft Entra | Microsoft Entra ID

Your answer

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