131 references to Name
Aspire.Dashboard (1)
BasicTestApp (1)
Certificate.Sample (1)
CookiePolicySample (1)
CookieSample (1)
CookieSessionSample (1)
CustomPolicyProvider (1)
Microsoft.AspNetCore.Antiforgery.Test (3)
Microsoft.AspNetCore.Authentication.Certificate (1)
Microsoft.AspNetCore.Authentication.Facebook (1)
Microsoft.AspNetCore.Authentication.Google (1)
Microsoft.AspNetCore.Authentication.MicrosoftAccount (1)
Microsoft.AspNetCore.Authentication.Test (70)
CertificateTests.cs (11)
537actual = responseAsXml.Elements("claim").Where(claim => claim.Attribute("Type").Value == ClaimTypes.Name);
589new Claim(ClaimTypes.Name, Expected, ClaimValueTypes.String, context.Options.ClaimsIssuer),
615var name = responseAsXml.Elements("claim").Where(claim => claim.Attribute("Type").Value == ClaimTypes.Name);
634name = responseAsXml.Elements("claim").Where(claim => claim.Attribute("Type").Value == ClaimTypes.Name);
660new Claim(ClaimTypes.Name, Expected, ClaimValueTypes.String, context.Options.ClaimsIssuer)
685var actual = responseAsXml.Elements("claim").Where(claim => claim.Attribute("Type").Value == ClaimTypes.Name);
716new Claim(ClaimTypes.Name, Expected, ClaimValueTypes.String, context.Options.ClaimsIssuer),
742var name = responseAsXml.Elements("claim").Where(claim => claim.Attribute("Type").Value == ClaimTypes.Name);
761name = responseAsXml.Elements("claim").Where(claim => claim.Attribute("Type").Value == ClaimTypes.Name);
783name = responseAsXml.Elements("claim").Where(claim => claim.Attribute("Type").Value == ClaimTypes.Name);
919new Claim(ClaimTypes.Name, context.ClientCertificate.Subject, ClaimValueTypes.String, context.Options.ClaimsIssuer)
CookieTests.cs (52)
262Assert.Equal("Alice", FindClaimValue(transaction2, ClaimTypes.Name));
273Assert.Equal("Alice", FindClaimValue(transaction4, ClaimTypes.Name));
297Assert.Equal("Alice", FindClaimValue(transaction2, ClaimTypes.Name));
306Assert.Null(FindClaimValue(transaction3, ClaimTypes.Name));
473Assert.Equal("Alice", FindClaimValue(transaction2, ClaimTypes.Name));
489Assert.Equal("Alice", FindClaimValue(transaction2, ClaimTypes.Name));
517Assert.Equal("Alice", FindClaimValue(transaction2, ClaimTypes.Name));
519Assert.Equal("Alice", FindClaimValue(transaction3, ClaimTypes.Name));
521Assert.Null(FindClaimValue(transaction4, ClaimTypes.Name));
551Assert.Equal("Alice", FindClaimValue(transaction2, ClaimTypes.Name));
553Assert.Equal("Alice", FindClaimValue(transaction3, ClaimTypes.Name));
555Assert.Null(FindClaimValue(transaction4, ClaimTypes.Name));
584Assert.Null(FindClaimValue(transaction2, ClaimTypes.Name));
613Assert.Null(FindClaimValue(transaction2, ClaimTypes.Name));
642Assert.Equal("Alice", FindClaimValue(transaction2, ClaimTypes.Name));
678Assert.Equal("Alice", FindClaimValue(transaction2, ClaimTypes.Name));
684Assert.Equal("Alice", FindClaimValue(transaction3, ClaimTypes.Name));
690Assert.Null(FindClaimValue(transaction4, ClaimTypes.Name));
696Assert.Null(FindClaimValue(transaction5, ClaimTypes.Name));
723Assert.Equal("Alice2", FindClaimValue(transaction2, ClaimTypes.Name));
755Assert.Equal("Alice", FindClaimValue(transaction2, ClaimTypes.Name));
758Assert.Equal("Alice", FindClaimValue(transaction2, ClaimTypes.Name));
765Assert.Equal("Alice2", FindClaimValue(transaction4, ClaimTypes.Name));
771Assert.Equal("Alice2", FindClaimValue(transaction5, ClaimTypes.Name));
799Assert.Equal("Alice", FindClaimValue(transaction2, ClaimTypes.Name));
805Assert.Equal("Alice", FindClaimValue(transaction3, ClaimTypes.Name));
811Assert.Equal("Alice", FindClaimValue(transaction4, ClaimTypes.Name));
817Assert.Null(FindClaimValue(transaction5, ClaimTypes.Name));
960Assert.Equal("Alice", FindClaimValue(transaction2, ClaimTypes.Name));
966Assert.Equal("Alice", FindClaimValue(transaction3, ClaimTypes.Name));
972Assert.Null(FindClaimValue(transaction4, ClaimTypes.Name));
978Assert.Null(FindClaimValue(transaction5, ClaimTypes.Name));
1012Assert.Equal("Alice", FindClaimValue(transaction2, ClaimTypes.Name));
1024Assert.Equal("Alice", FindClaimValue(transaction3, ClaimTypes.Name));
1030Assert.Equal("Alice", FindClaimValue(transaction4, ClaimTypes.Name));
1059Assert.Equal("Alice", FindClaimValue(transaction2, ClaimTypes.Name));
1065Assert.Equal("Alice", FindClaimValue(transaction3, ClaimTypes.Name));
1071Assert.Null(FindClaimValue(transaction4, ClaimTypes.Name));
1089Assert.Equal("Alice", FindClaimValue(transaction2, ClaimTypes.Name));
1095Assert.Equal("Alice", FindClaimValue(transaction3, ClaimTypes.Name));
1102Assert.Equal("Alice", FindClaimValue(transaction4, ClaimTypes.Name));
1108Assert.Equal("Alice", FindClaimValue(transaction5, ClaimTypes.Name));
1135Assert.Equal("Alice", FindClaimValue(transaction2, ClaimTypes.Name));
1141Assert.Equal("Alice", FindClaimValue(transaction3, ClaimTypes.Name));
1148Assert.Equal("Alice", FindClaimValue(transaction4, ClaimTypes.Name));
1154Assert.Equal("Alice", FindClaimValue(transaction5, ClaimTypes.Name));
1183Assert.Equal("Alice", FindClaimValue(transaction2, ClaimTypes.Name));
1189Assert.Equal("Alice", FindClaimValue(transaction3, ClaimTypes.Name));
1196Assert.Equal("Alice", FindClaimValue(transaction4, ClaimTypes.Name));
1201Assert.Equal("Alice", FindClaimValue(transaction5, ClaimTypes.Name));
1206Assert.Equal("Alice", FindClaimValue(transaction6, ClaimTypes.Name));
1739Assert.Equal("Alice", FindClaimValue(transaction2, ClaimTypes.Name));
Microsoft.AspNetCore.Authentication.Twitter (1)
Microsoft.AspNetCore.Authorization.Test (5)
Microsoft.AspNetCore.Components.Server.Tests (1)
Microsoft.AspNetCore.Identity (4)
Microsoft.AspNetCore.Identity.FunctionalTests (6)
MapIdentityApiTests.cs (6)
1045Assert.Equal(Email, GetSingleClaim(infoClaims, ClaimTypes.Name));
1063Assert.Equal(Email, GetSingleClaim(infoPostClaims, ClaimTypes.Name));
1089Assert.Equal(Email, GetSingleClaim(claimsAfterEmailChange, ClaimTypes.Name));
1104Assert.Equal(newEmail, GetSingleClaim(claimsAfterFinalLogin, ClaimTypes.Name));
1140Assert.Equal(Email, GetSingleClaim(infoClaims, ClaimTypes.Name));
1189Assert.Equal(newEmail, GetSingleClaim(claimsAfterFinalLogin, ClaimTypes.Name));
Microsoft.AspNetCore.Identity.InMemory.Test (12)
FunctionalTest.cs (12)
61Assert.Equal("hao", FindClaimValue(transaction3, ClaimTypes.Name));
96Assert.Equal("hao", FindClaimValue(transaction3, ClaimTypes.Name));
102Assert.Equal("hao", FindClaimValue(transaction4, ClaimTypes.Name));
108Assert.Null(FindClaimValue(transaction5, ClaimTypes.Name));
142Assert.Equal("hao", FindClaimValue(transaction3, ClaimTypes.Name));
148Assert.Equal("hao", FindClaimValue(transaction4, ClaimTypes.Name));
156Assert.Equal("hao", FindClaimValue(transaction5, ClaimTypes.Name));
160Assert.Equal("hao", FindClaimValue(transaction6, ClaimTypes.Name));
194Assert.Equal("hao", FindClaimValue(transaction3, ClaimTypes.Name));
200Assert.Equal("hao", FindClaimValue(transaction4, ClaimTypes.Name));
208Assert.Equal("hao", FindClaimValue(transaction5, ClaimTypes.Name));
213Assert.Equal("hao", FindClaimValue(transaction6, ClaimTypes.Name));
Microsoft.AspNetCore.Identity.Test (9)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
Microsoft.AspNetCore.SignalR.Specification.Tests (1)
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
Microsoft.Extensions.Identity.Core (2)
PathSchemeSelection (1)
SocialSample (2)
System.Security.Claims (1)