Back to Practical Aspnetcore

Allow anonymous access and require authorization to endpoints

projects/endpoint-routing/new-routing-31/README.md

latest190 B
Original Source

Allow anonymous access and require authorization to endpoints

Use .AllowAnonymous() and .RequireAuthorization extension methods to allow anonymous access and demand authorization.