8 references to GenericPrincipal
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 (2)
System\Net\Managed\HttpListenerContext.Managed.cs (1)
50
new
GenericPrincipal
(new HttpListenerBasicIdentity(username, password), Array.Empty<string>()) :
System\Net\WebSockets\HttpListenerWebSocketContext.cs (1)
99
return new
GenericPrincipal
(new HttpListenerBasicIdentity(basicIdentity.Name, basicIdentity.Password), null);
System.Security.Claims (1)
System\Security\Claims\GenericPrincipal.cs (1)
86
private static GenericPrincipal GetDefaultInstance() => new
GenericPrincipal
(new GenericIdentity(string.Empty), new string[] { string.Empty });