Skip to content
This repository was archived by the owner on Aug 4, 2024. It is now read-only.

Commit dc281e3

Browse files
committed
Fixes the definition of the authn error event codes
1 parent 9197535 commit dc281e3

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/Lithnet.Laps.Web/Lithnet.Laps.Web/Internal/EventIDs.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ internal static class EventIDs
2626
public const int ErrorLoadingTemplateResource = 603;
2727

2828
public const int OidcAuthZCodeError = 700;
29-
public const int OidcAuthNError = 701;
30-
public const int WsFedAuthNError = 702;
29+
public const int OwinAuthNError = 701;
3130
}
3231
}

src/Lithnet.Laps.Web/Lithnet.Laps.Web/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public void ConfigureWsFederation(IAppBuilder app)
192192

193193
private static Task HandleAuthNFailed<TMessage, TOptions>(AuthenticationFailedNotification<TMessage, TOptions> context)
194194
{
195-
Reporting.LogErrorEvent(EventIDs.WsFedAuthNError, LogMessages.AuthNProviderError, context.Exception);
195+
Reporting.LogErrorEvent(EventIDs.OwinAuthNError, LogMessages.AuthNProviderError, context.Exception);
196196

197197
context.HandleResponse();
198198
context.Response.Redirect($"/Home/AuthNError?message={HttpUtility.UrlEncode(context.Exception?.Message ?? "Unknown error")}");

0 commit comments

Comments
 (0)