Skip to content

Instantly share code, notes, and snippets.

@joe-oli
Last active November 17, 2022 07:01
Show Gist options
  • Save joe-oli/027de91c700524614592e633c559b3d8 to your computer and use it in GitHub Desktop.
Save joe-oli/027de91c700524614592e633c559b3d8 to your computer and use it in GitHub Desktop.
Application Insights Notes
https://learn.microsoft.com/en-us/azure/azure-monitor/app/ilogger
This helped me REDIRECT on Auth Failed!
https://github.com/dotnet/aspnetcore/issues/22596
OnAuthenticationFailed = context =>
{
context.Response.Redirect("/Error");
context.HandleResponse(); // Suppress the exception
return Task.CompletedTask;
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment