Implemented interface member:
3 overrides of Name
Microsoft.AspNetCore.Antiforgery.Test (1)
DefaultAntiforgeryTokenGeneratorTest.cs (1)
614public override string Name
System.Security.Claims (1)
System\Security\Claims\GenericIdentity.cs (1)
58public override string Name
System.Security.Principal.Windows (1)
artifacts\obj\System.Security.Principal.Windows\Debug\net10.0\System.Security.Principal.Windows.notsupported.cs (1)
256public override string Name { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal); } }
19 references to Name
Microsoft.AspNetCore.Antiforgery (2)
Internal\DefaultAntiforgeryTokenGenerator.cs (2)
66requestToken.Username = authenticatedIdentity.Name; 148currentUsername = authenticatedIdentity.Name ?? string.Empty;
Microsoft.AspNetCore.Antiforgery.Test (1)
DefaultAntiforgeryTokenGeneratorTest.cs (1)
185mockIdentity.Setup(o => o.Name)
Microsoft.AspNetCore.Authentication.Negotiate (1)
Internal\LdapAdapter.cs (1)
22var user = identity.Name!;
Microsoft.AspNetCore.Authorization (1)
NameAuthorizationRequirement.cs (1)
46if (string.Equals(identity.Name, requirement.RequiredName, StringComparison.Ordinal))
Microsoft.AspNetCore.Components.Authorization (1)
AuthenticationStateData.cs (1)
19/// Gets the value that identifies 'Name' claims. This is used when returning the property <see cref="ClaimsIdentity.Name"/>.
Microsoft.AspNetCore.Shared.Tests (4)
SecurityHelperTests.cs (4)
45Assert.Equal("Test3", user.Identities.Skip(0).First().Name); 46Assert.Equal("Test2", user.Identities.Skip(1).First().Name); 47Assert.Equal("Test1", user.Identities.Skip(2).First().Name); 87Assert.Equal("Test3", user.Identities.Skip(0).First().Name);
System.Security.Claims (9)
System\Security\Claims\ClaimsIdentity.cs (9)
62/// <param name="identity"><see cref="IIdentity"/> supplies the <see cref="Name"/> and <see cref="AuthenticationType"/>.</param> 104/// <param name="identity"><see cref="IIdentity"/> supplies the <see cref="Name"/> and <see cref="AuthenticationType"/>.</param> 116/// <param name="nameType">The <see cref="Claim.Type"/> used when obtaining the value of <see cref="ClaimsIdentity.Name"/>.</param> 129/// <param name="nameType">The <see cref="Claim.Type"/> used when obtaining the value of <see cref="ClaimsIdentity.Name"/>.</param> 140/// <param name="identity"><see cref="IIdentity"/> supplies the <see cref="Name"/> and <see cref="AuthenticationType"/>.</param> 143/// <param name="nameType">The <see cref="Claim.Type"/> used when obtaining the value of <see cref="ClaimsIdentity.Name"/>.</param> 384/// Gets the value that identifies 'Name' claims. This is used when returning the property <see cref="ClaimsIdentity.Name"/>. 949if (Name != null) 955debugText += $", Name = {Name}";