43 references to GenericIdentity
dotnet-svcutil-lib (3)
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\X509CertificateClaimSet.cs (2)
504
:
base
(X509, X509)
510
:
base
(X509, X509)
FrameworkFork\System.ServiceModel\System\IdentityModel\SecurityUtils.cs (1)
66
return new
GenericIdentity
(name, authenticationType);
Microsoft.AspNetCore.Authentication.Negotiate.Test (2)
EventTests.cs (1)
526
return new
GenericIdentity
("name", _protocol);
NegotiateHandlerTests.cs (1)
557
return new
GenericIdentity
("name", _protocol);
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"))));
Microsoft.AspNetCore.Shared.Tests (5)
SecurityHelperTests.cs (5)
16
var user = SecurityHelper.MergeUserPrincipal(new ClaimsPrincipal(), new GenericPrincipal(new
GenericIdentity
("Test1", "Alpha"), new string[0]));
29
ClaimsPrincipal user = new GenericPrincipal(new
GenericIdentity
("Test1", "Alpha"), null);
34
user = SecurityHelper.MergeUserPrincipal(user, new GenericPrincipal(new
GenericIdentity
("Test2", "Beta"), new string[0]));
39
user = SecurityHelper.MergeUserPrincipal(user, new GenericPrincipal(new
GenericIdentity
("Test3", "Gamma"), new string[0]));
81
user = SecurityHelper.MergeUserPrincipal(user, new GenericPrincipal(new
GenericIdentity
("Test3", "Gamma"), new string[0]));
System.Net.HttpListener (1)
System\Net\HttpListenerBasicIdentity.cs (1)
11
base
(username, "Basic")
System.Net.Security (2)
System\Net\NegotiateAuthenticationPal.Unix.cs (1)
152
result = new
GenericIdentity
(name ?? string.Empty, protocol);
System\Net\Security\NegotiateAuthentication.cs (1)
178
return new
GenericIdentity
(TargetName ?? string.Empty, Package);
System.ServiceModel.Primitives (3)
System\IdentityModel\Claims\X509CertificateClaimSet.cs (2)
537
:
base
(X509, X509)
543
:
base
(X509, X509)
System\IdentityModel\SecurityUtils.cs (1)
62
return new
GenericIdentity
(name, authenticationType);