31 references to ClaimsIdentity
Microsoft.AspNetCore.Authentication.Negotiate (1)
NegotiateHandler.cs (1)
330user = new ClaimsPrincipal(new ClaimsIdentity(identity));
Microsoft.AspNetCore.Authentication.Test (25)
CookieTests.cs (25)
164var user = new ClaimsIdentity(new GenericIdentity("Alice", "Cookies")); 174new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity("Alice", "Cookies"))), 318var user = new ClaimsIdentity(new GenericIdentity("Alice", "Cookies")); 534new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity("Alice", "Cookies"))), 575new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity("Alice", "Cookies"))))); 606new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity("Alice", "Cookies"))))); 634new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity("Alice", "Cookies"))))); 671new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity("Alice", "Cookies"))))); 709ctx.ReplacePrincipal(new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity("Alice2", "Cookies2")))); 716new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity("Alice", "Cookies"))))); 740ctx.ReplacePrincipal(new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity("Alice2", "Cookies2")))); 749new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity("Alice", "Cookies"))))); 792new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity("Alice", "Cookies"))))); 848new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity("Alice", "Cookies"))))); 907new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity("Alice", "Cookies"))))); 953new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity("Alice", "Cookies"))))); 1005new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity("Alice", "Cookies"))))); 1217new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity("Alice", "Cookies")))); 1565new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity("Alice", CookieAuthenticationDefaults.AuthenticationScheme))), 1589new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity("Alice", CookieAuthenticationDefaults.AuthenticationScheme)))); 1611new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity("Alice", CookieAuthenticationDefaults.AuthenticationScheme)))); 1634new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity("Alice", CookieAuthenticationDefaults.AuthenticationScheme)))); 1656new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity("Alice", CookieAuthenticationDefaults.AuthenticationScheme))), 1703new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity("Alice", "Cookies"))), 1771new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity("Alice", "Cookies"))));
Microsoft.AspNetCore.CookiePolicy.Test (2)
CookiePolicyTests.cs (2)
376new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity("TestUser", "Cookies")))); 427new ClaimsPrincipal(new ClaimsIdentity(new GenericIdentity(new string('c', 1024 * 5), "Cookies"))));
System.Security.Claims (3)
System\Security\Claims\ClaimsPrincipal.cs (2)
121_identities.Add(new ClaimsIdentity(identity)); 141_identities.Add(new ClaimsIdentity(principal.Identity));
System\Security\Claims\GenericPrincipal.cs (1)
43claimsIdentity = new ClaimsIdentity(identity);