31 references to ClaimsIdentity
Microsoft.AspNetCore.Authentication.Negotiate (1)
NegotiateHandler.cs (1)
330
user = new ClaimsPrincipal(new
ClaimsIdentity
(identity));
Microsoft.AspNetCore.Authentication.Test (25)
CookieTests.cs (25)
164
var user = new
ClaimsIdentity
(new GenericIdentity("Alice", "Cookies"));
174
new ClaimsPrincipal(new
ClaimsIdentity
(new GenericIdentity("Alice", "Cookies"))),
318
var user = new
ClaimsIdentity
(new GenericIdentity("Alice", "Cookies"));
534
new ClaimsPrincipal(new
ClaimsIdentity
(new GenericIdentity("Alice", "Cookies"))),
575
new ClaimsPrincipal(new
ClaimsIdentity
(new GenericIdentity("Alice", "Cookies")))));
606
new ClaimsPrincipal(new
ClaimsIdentity
(new GenericIdentity("Alice", "Cookies")))));
634
new ClaimsPrincipal(new
ClaimsIdentity
(new GenericIdentity("Alice", "Cookies")))));
671
new ClaimsPrincipal(new
ClaimsIdentity
(new GenericIdentity("Alice", "Cookies")))));
709
ctx.ReplacePrincipal(new ClaimsPrincipal(new
ClaimsIdentity
(new GenericIdentity("Alice2", "Cookies2"))));
716
new ClaimsPrincipal(new
ClaimsIdentity
(new GenericIdentity("Alice", "Cookies")))));
740
ctx.ReplacePrincipal(new ClaimsPrincipal(new
ClaimsIdentity
(new GenericIdentity("Alice2", "Cookies2"))));
749
new ClaimsPrincipal(new
ClaimsIdentity
(new GenericIdentity("Alice", "Cookies")))));
792
new ClaimsPrincipal(new
ClaimsIdentity
(new GenericIdentity("Alice", "Cookies")))));
848
new ClaimsPrincipal(new
ClaimsIdentity
(new GenericIdentity("Alice", "Cookies")))));
907
new ClaimsPrincipal(new
ClaimsIdentity
(new GenericIdentity("Alice", "Cookies")))));
953
new ClaimsPrincipal(new
ClaimsIdentity
(new GenericIdentity("Alice", "Cookies")))));
1005
new ClaimsPrincipal(new
ClaimsIdentity
(new GenericIdentity("Alice", "Cookies")))));
1217
new ClaimsPrincipal(new
ClaimsIdentity
(new GenericIdentity("Alice", "Cookies"))));
1565
new ClaimsPrincipal(new
ClaimsIdentity
(new GenericIdentity("Alice", CookieAuthenticationDefaults.AuthenticationScheme))),
1589
new ClaimsPrincipal(new
ClaimsIdentity
(new GenericIdentity("Alice", CookieAuthenticationDefaults.AuthenticationScheme))));
1611
new ClaimsPrincipal(new
ClaimsIdentity
(new GenericIdentity("Alice", CookieAuthenticationDefaults.AuthenticationScheme))));
1634
new ClaimsPrincipal(new
ClaimsIdentity
(new GenericIdentity("Alice", CookieAuthenticationDefaults.AuthenticationScheme))));
1656
new ClaimsPrincipal(new
ClaimsIdentity
(new GenericIdentity("Alice", CookieAuthenticationDefaults.AuthenticationScheme))),
1703
new ClaimsPrincipal(new
ClaimsIdentity
(new GenericIdentity("Alice", "Cookies"))),
1771
new ClaimsPrincipal(new
ClaimsIdentity
(new GenericIdentity("Alice", "Cookies"))));
Microsoft.AspNetCore.CookiePolicy.Test (2)
CookiePolicyTests.cs (2)
376
new ClaimsPrincipal(new
ClaimsIdentity
(new GenericIdentity("TestUser", "Cookies"))));
427
new 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)
43
claimsIdentity = new
ClaimsIdentity
(identity);