Can .NET 6 minimal API endpoints have opt-out authorization? – Asp.net
I was trying to code a small API where every endpoint should have auth enabled by default, because I don't want to repeat the same [Authorize] attribute or .RequiresAuthorization() call for every endpoint. I did all the usual .AddAuthentication(), .AddAuthorization(),…