98 references to AddClaim
Aspire.Dashboard (1)
dotnet-user-jwts (2)
Microsoft.AspNetCore.Antiforgery.Test (23)
DefaultClaimUidExtractorTest.cs (23)
55identity.AddClaim(new Claim(ClaimTypes.Email, "someone@antiforgery.com"));
56identity.AddClaim(new Claim(ClaimTypes.GivenName, "some"));
57identity.AddClaim(new Claim(ClaimTypes.Surname, "one"));
58identity.AddClaim(new Claim(ClaimTypes.NameIdentifier, string.Empty));
84identity.AddClaim(new Claim("fooClaim", "fooClaimValue"));
85identity.AddClaim(new Claim(ClaimTypes.NameIdentifier, "nameIdentifierValue"));
104identity.AddClaim(new Claim(ClaimTypes.NameIdentifier, "nameIdentifierValue"));
105identity.AddClaim(new Claim("sub", "subClaimValue"));
106identity.AddClaim(new Claim(ClaimTypes.Upn, "upnClaimValue"));
125identity.AddClaim(new Claim(ClaimTypes.NameIdentifier, "nameIdentifierValue"));
126identity.AddClaim(new Claim(ClaimTypes.Upn, "upnClaimValue"));
145identity.AddClaim(new Claim("fooClaim", "fooClaimValue"));
146identity.AddClaim(new Claim(ClaimTypes.Upn, "upnClaimValue"));
165identity1.AddClaim(new Claim("sub", "subClaimValue"));
167identity2.AddClaim(new Claim(ClaimTypes.NameIdentifier, "nameIdentifierValue"));
186identity1.AddClaim(new Claim("sub", "subClaimValue"));
188identity2.AddClaim(new Claim(ClaimTypes.Email, "email@domain.com"));
190identity3.AddClaim(new Claim(ClaimTypes.Country, "countryValue"));
192identity4.AddClaim(new Claim(ClaimTypes.Name, "claimName"));
218identity1.AddClaim(new Claim(ClaimTypes.NameIdentifier, "nameIdentifierValue"));
220identity2.AddClaim(new Claim("sub", "subClaimValue"));
240identity1.AddClaim(new Claim(ClaimTypes.Upn, "upnValue"));
242identity2.AddClaim(new Claim(ClaimTypes.NameIdentifier, "nameIdentifierValue"));
Microsoft.AspNetCore.Authentication (1)
Microsoft.AspNetCore.Authentication.Core.Test (1)
Microsoft.AspNetCore.Authentication.Negotiate (2)
Microsoft.AspNetCore.Authentication.OAuth (3)
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
Microsoft.AspNetCore.Authentication.Test (31)
Microsoft.AspNetCore.Authorization.Test (4)
Microsoft.AspNetCore.Identity (5)
Microsoft.AspNetCore.Identity.InMemory.Test (2)
Microsoft.AspNetCore.Identity.Test (13)
Microsoft.AspNetCore.Shared.Tests (1)
Microsoft.AspNetCore.Tests (1)
Microsoft.Extensions.Identity.Core (5)
OpenIdConnectSample (1)
System.Security.Claims (1)