Answers for "System.InvalidOperationException: The AuthorizationPolicy named: 'View All Roles' was not found."

C#
0

System.InvalidOperationException: The AuthorizationPolicy named: 'View All Roles' was not found.

services.AddAuthorization(o =>
{
    o.AddPolicy("FirstStepCompleted", policy => policy.RequireClaim("FirstStepCompleted"));
    o.AddPolicy("Authorized", policy => policy.RequireClaim("Authorized"));
});
Posted by: Guest on February-05-2021

Code answers related to "System.InvalidOperationException: The AuthorizationPolicy named: 'View All Roles' was not found."

C# Answers by Framework

Browse Popular Code Answers by Language