79317783

Date: 2024-12-30 14:00:28
Score: 2
Natty:
Report link

If you don't want to use:

[Authorize(AuthenticationSchemes="your custom scheme")]

In your project add:

AppContext.SetSwitch("Microsoft.AspNetCore.Authentication.SuppressAutoDefaultScheme", false);

See https://learn.microsoft.com/en-us/dotnet/core/compatibility/aspnet-core/7.0/default-authentication-scheme for more detail. It's a breaking change from .NET 7.

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Bulle-dog