23 references to Role
BasicWebSite (1)
CookieSessionSample (1)
dotnet-user-jwts (1)
Identity.DefaultUI.WebSite (1)
Microsoft.AspNetCore.Authorization.Test (11)
DefaultAuthorizationServiceTests.cs (8)
349.RequireClaim(ClaimTypes.Role, "User");
354new Claim(ClaimTypes.Role, "User"),
355new Claim(ClaimTypes.Role, "Administrator")
371var policy = new AuthorizationPolicyBuilder().RequireClaim(ClaimTypes.Role);
376new Claim(ClaimTypes.Role, "none"),
412new ClaimsIdentity(new Claim[] { new Claim(ClaimTypes.Role, "Admin") }, "AuthType")
429new ClaimsIdentity(new Claim[] { new Claim(ClaimTypes.Role, "Users") }, "AuthType"));
447new Claim(ClaimTypes.Role, "Nope"),
Microsoft.AspNetCore.Identity.InMemory.Test (1)
Microsoft.AspNetCore.Identity.Test (1)
Microsoft.AspNetCore.Mvc.Core.Test (3)
Microsoft.Extensions.Identity.Core (2)
System.Security.Claims (1)