2 overrides of Claims
System.Security.Claims (1)
System\Security\Claims\GenericIdentity.cs (1)
50public override IEnumerable<Claim> Claims
System.Security.Principal.Windows (1)
artifacts\obj\System.Security.Principal.Windows\Debug\net10.0\System.Security.Principal.Windows.notsupported.cs (1)
248public override System.Collections.Generic.IEnumerable<System.Security.Claims.Claim> Claims { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal); } }
33 references to Claims
Aspire.Dashboard (2)
Authentication\AspirePolicyEvaluator.cs (1)
145newPrincipal.AddIdentities(existingPrincipal.Identities.Where(i => i.IsAuthenticated || i.Claims.Any()));
Extensions\ClaimsIdentityExtensions.cs (1)
11/// Searches the claims in the <see cref="ClaimsIdentity.Claims"/> for each of the claim types in <paramref name="claimTypes" />
Microsoft.AspNetCore.Antiforgery (1)
Internal\DefaultClaimUidExtractor.cs (1)
98allClaims.AddRange(identitiesList[i].Claims);
Microsoft.AspNetCore.Antiforgery.Test (2)
DefaultClaimUidExtractorTest.cs (2)
39mockIdentity.Setup(o => o.Claims).Returns(new Claim[] { new Claim(ClaimTypes.Name, "someName") }); 66var claims = claimsIdentity.Claims.ToList();
Microsoft.AspNetCore.Authentication (3)
src\Shared\SecurityHelper\SecurityHelper.cs (1)
42newPrincipal.AddIdentities(existingPrincipal.Identities.Where(i => i.IsAuthenticated || i.Claims.Any()));
TicketSerializer.cs (2)
90writer.Write(identity.Claims.Count()); 92foreach (var claim in identity.Claims)
Microsoft.AspNetCore.Authentication.Test (1)
TestExtensions.cs (1)
54xml.Add(identity.Claims.Select(claim =>
Microsoft.AspNetCore.Authorization.Policy (1)
src\Shared\SecurityHelper\SecurityHelper.cs (1)
42newPrincipal.AddIdentities(existingPrincipal.Identities.Where(i => i.IsAuthenticated || i.Claims.Any()));
Microsoft.AspNetCore.Http.Connections (1)
src\Shared\SecurityHelper\SecurityHelper.cs (1)
42newPrincipal.AddIdentities(existingPrincipal.Identities.Where(i => i.IsAuthenticated || i.Claims.Any()));
Microsoft.AspNetCore.Identity.FunctionalTests (5)
ManagementTests.cs (5)
172Assert.NotNull(principals[1].Identities.Single().Claims.Single(c => c.Type == ClaimTypes.AuthenticationMethod).Value); 367var expectedPrincipalClaim = expectedPrincipal.Identities.Single().Claims.Single(c => c.Type == claimType).Value; 368var actualPrincipalClaim = actualPrincipal.Identities.Single().Claims.Single(c => c.Type == claimType).Value; 374var expectedPrincipalClaim = expectedPrincipal.Identities.Single().Claims.Single(c => c.Type == claimType).Value; 375var actualPrincipalClaim = actualPrincipal.Identities.Single().Claims.Single(c => c.Type == claimType).Value;
Microsoft.AspNetCore.Identity.Test (1)
UserClaimsPrincipalFactoryTest.cs (1)
94var claims = identity.Claims.ToList();
Microsoft.AspNetCore.Mvc.Core (1)
src\Shared\SecurityHelper\SecurityHelper.cs (1)
42newPrincipal.AddIdentities(existingPrincipal.Identities.Where(i => i.IsAuthenticated || i.Claims.Any()));
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\SecurityHelper\SecurityHelper.cs (1)
42newPrincipal.AddIdentities(existingPrincipal.Identities.Where(i => i.IsAuthenticated || i.Claims.Any()));
OpenIdConnectSample (1)
Startup.cs (1)
367var oldClaims = identity.Claims.ToList();
SecurityWebSite (1)
Controllers\LoginController.cs (1)
42return Content(BearerAuth.GetTokenText(identity.Claims));
System.Security.Claims (12)
System\Security\Claims\ClaimsIdentity.cs (10)
351/// The claims will not be serialized or added in Clone(). They will be included in searches, finds and returned from the call to <see cref="ClaimsIdentity.Claims"/>. 459/// <remarks> It is possible that a <see cref="Claim"/> returned from <see cref="Claims"/> cannot be removed. This would be the case for 'External' claims that are provided by reference. 487/// <remarks> It is possible that a <see cref="Claim"/> returned from <see cref="Claims"/> cannot be removed. This would be the case for 'External' claims that are provided by reference. 554foreach (Claim claim in Claims) 578foreach (Claim claim in Claims) 601foreach (Claim claim in Claims) 623foreach (Claim claim in Claims) 647foreach (Claim claim in Claims) 672foreach (Claim claim in Claims) 943foreach (Claim item in Claims)
System\Security\Claims\ClaimsPrincipal.cs (1)
234foreach (Claim claim in identity.Claims)
System\Security\Claims\GenericIdentity.cs (1)
54return base.Claims;