35 references to Identities
Aspire.Dashboard (2)
Authentication\AspirePolicyEvaluator.cs (2)
139newPrincipal.AddIdentities(additionalPrincipal.Identities); 145newPrincipal.AddIdentities(existingPrincipal.Identities.Where(i => i.IsAuthenticated || i.Claims.Any()));
Microsoft.AspNetCore.Antiforgery (3)
Internal\DefaultAntiforgeryTokenGenerator.cs (2)
215if (claimsPrincipal.Identities is List<ClaimsIdentity> identitiesList) 227foreach (var identity in claimsPrincipal.Identities)
Internal\DefaultClaimUidExtractor.cs (1)
21var uniqueIdentifierParameters = GetUniqueIdentifierParameters(claimsPrincipal.Identities);
Microsoft.AspNetCore.Authentication (4)
src\aspnetcore\src\Shared\SecurityHelper\SecurityHelper.cs (2)
36newPrincipal.AddIdentities(additionalPrincipal.Identities); 42newPrincipal.AddIdentities(existingPrincipal.Identities.Where(i => i.IsAuthenticated || i.Claims.Any()));
TicketSerializer.cs (2)
71writer.Write(principal.Identities.Count()); 73foreach (var identity in principal.Identities)
Microsoft.AspNetCore.Authentication.Abstractions (2)
AuthenticationTicket.cs (2)
56/// The method clones the <see cref="Principal"/> by calling <see cref="ClaimsIdentity.Clone"/> on each of the <see cref="ClaimsPrincipal.Identities"/>. 62foreach (var identity in Principal.Identities)
Microsoft.AspNetCore.Authentication.Cookies (1)
CookieAuthenticationHandler.cs (1)
136foreach (var identity in principal.Identities)
Microsoft.AspNetCore.Authorization (2)
DenyAnonymousAuthorizationRequirement.cs (1)
27!user.Identities.Any(i => i.IsAuthenticated);
NameAuthorizationRequirement.cs (1)
44foreach (var identity in context.User.Identities)
Microsoft.AspNetCore.Authorization.Policy (2)
src\aspnetcore\src\Shared\SecurityHelper\SecurityHelper.cs (2)
36newPrincipal.AddIdentities(additionalPrincipal.Identities); 42newPrincipal.AddIdentities(existingPrincipal.Identities.Where(i => i.IsAuthenticated || i.Claims.Any()));
Microsoft.AspNetCore.Http.Connections (4)
Internal\HttpConnectionContext.cs (1)
282foreach (var identity in User.Identities)
Internal\HttpConnectionDispatcher.cs (1)
698foreach (var identity in oldContext.User.Identities)
src\aspnetcore\src\Shared\SecurityHelper\SecurityHelper.cs (2)
36newPrincipal.AddIdentities(additionalPrincipal.Identities); 42newPrincipal.AddIdentities(existingPrincipal.Identities.Where(i => i.IsAuthenticated || i.Claims.Any()));
Microsoft.AspNetCore.Identity (3)
SignInManager.cs (3)
138return principal.Identities != null && 139principal.Identities.Any(i => i.AuthenticationType == AuthenticationScheme); 284userPrincipal.Identities.First().AddClaim(claim);
Microsoft.AspNetCore.Mvc.Core (2)
src\aspnetcore\src\Shared\SecurityHelper\SecurityHelper.cs (2)
36newPrincipal.AddIdentities(additionalPrincipal.Identities); 42newPrincipal.AddIdentities(existingPrincipal.Identities.Where(i => i.IsAuthenticated || i.Claims.Any()));
System.Security.Claims (8)
System\Security\Claims\ClaimsPrincipal.cs (8)
145if (null != cp.Identities) 147_identities.AddRange(cp.Identities); 214/// Gets the claims as <see cref="IEnumerable{Claim}"/>, associated with this <see cref="ClaimsPrincipal"/> by enumerating all <see cref="Identities"/>. 220foreach (ClaimsIdentity identity in Identities) 288foreach (ClaimsIdentity identity in Identities) 315foreach (ClaimsIdentity identity in Identities) 341foreach (ClaimsIdentity identity in Identities) 565foreach (ClaimsIdentity items in Identities)
System.Security.Principal.Windows (2)
System\Security\Principal\WindowsPrincipal.cs (2)
80foreach (ClaimsIdentity identity in Identities) 101foreach (ClaimsIdentity identity in Identities)