You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: support/entra/entra-id/app-integration/asp-dot-net-open-web-interface-for-dot-net-core-authentication-sign-in-failures.md
+110-6Lines changed: 110 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Troubleshoot ASP.NET OWIN and ASP.NET Core authentication sign-in failure
3
3
description: Helps you expose hidden error messages that can guide you toward resolving ASP.NET OWIN and ASP.NET Core authentication sign-in failures with Microsoft Entra ID.
4
4
ms.reviewer: willfid, v-weizhu
5
5
ms.service: entra-id
6
-
ms.date: 06/25/2025
6
+
ms.date: 06/27/2025
7
7
ms.custom: sap:Developing or Registering apps with Microsoft identity platform
8
8
---
9
9
# Troubleshoot ASP.NET OWIN and ASP.NET Core authentication sign-in failures with Microsoft Entra ID
@@ -27,15 +27,119 @@ To expose hidden errors during the sign-in process, use the `OnAuthenticationFai
27
27
28
28
### For ASP.NET OWIN
29
29
30
-
Ensure your code for handling the `AuthenticationFailed` event in the *Startup.Auth.cs* file follows a structure similar to the following:
30
+
Ensure your code for the `AuthenticationFailed` event in the *Startup.Auth.cs* file follows this structure:
Youcanmodifythistosendtheerrormessagetoyourlogsorsendittoacustomerrorpage. Ataminimum, theerrormessageshouldbedisplayedinthebrowser's address bar.
41
145
@@ -52,4 +156,4 @@ For more information about using Fiddler, see [Collect HTTPS traffic using Fiddl
52
156
ForalistofMicrosoftEntraauthenticationandauthorizationerrors, see [MicrosoftEntraauthenticationandauthorizationerrorcodes](/entra/identity-platform/reference-error-codes).
53
157
54
158
55
-
[!INCLUDE [Azure Help Support](../../../includes/azure-help-support.md)]
0 commit comments