Answers for "asp.net core authorization default policy"

C#
0

asp.net core authorization default policy

services.AddAuthorization(options =>
            {
                options.DefaultPolicy = new AuthorizationPolicyBuilder()
                .RequireAuthenticatedUser()
                .AddAuthenticationSchemes(JwtBearerDefaults.AuthenticationScheme)
                .Build();
            });
Posted by: Guest on August-22-2021

C# Answers by Framework

Browse Popular Code Answers by Language