4 references to HasClaim
BasicWebSite (1)
ManagerHandler.cs (1)
13
if (context.User.
HasClaim
("Manager", "yes"))
Microsoft.AspNetCore.Authentication.Core.Test (2)
AuthenticationTicketTests.cs (2)
41
Assert.True(ticket.Principal.
HasClaim
("name", "value"));
42
Assert.False(copy.Principal.
HasClaim
("name", "value"));
Microsoft.AspNetCore.Authorization.Test (1)
DefaultAuthorizationServiceTests.cs (1)
831
if (context.User.
HasClaim
("SuperUser", "yes"))