17 references to NameIdentifier
Aspire.Dashboard (3)
Authentication\UnsecuredAuthenticationHandler.cs (1)
21[new Claim(ClaimTypes.NameIdentifier, "Local"), new Claim(FrontendAuthorizationDefaults.UnsecuredClaimName, bool.TrueString)],
DashboardWebApplication.cs (1)
770new Claim(ClaimTypes.NameIdentifier,
Model\ValidateTokenMiddleware.cs (1)
94[new Claim(ClaimTypes.NameIdentifier, "Local")],
Microsoft.AspNetCore.Antiforgery (1)
Internal\DefaultClaimUidExtractor.cs (1)
60claim => string.Equals(ClaimTypes.NameIdentifier, claim.Type, StringComparison.Ordinal));
Microsoft.AspNetCore.Authentication.Facebook (1)
FacebookOptions.cs (1)
32ClaimActions.MapJsonKey(ClaimTypes.NameIdentifier, "id");
Microsoft.AspNetCore.Authentication.Google (2)
GoogleOptions.cs (2)
29ClaimActions.MapJsonKey(ClaimTypes.NameIdentifier, "id"); // v2 30ClaimActions.MapJsonKey(ClaimTypes.NameIdentifier, "sub"); // v3
Microsoft.AspNetCore.Authentication.MicrosoftAccount (1)
MicrosoftAccountOptions.cs (1)
27ClaimActions.MapJsonKey(ClaimTypes.NameIdentifier, "id");
Microsoft.AspNetCore.Authentication.Twitter (1)
TwitterHandler.cs (1)
109new Claim(ClaimTypes.NameIdentifier, accessToken.UserId, ClaimValueTypes.String, ClaimsIssuer),
Microsoft.AspNetCore.Http.Connections (2)
Internal\HttpConnectionDispatcher.cs (2)
892var originalName = currentUser.FindFirst(ClaimTypes.NameIdentifier)?.Value; 893var newName = newPrincipal.FindFirst(ClaimTypes.NameIdentifier)?.Value;
Microsoft.AspNetCore.Identity (1)
SignInManager.cs (1)
1108var providerKey = auth.Principal.FindFirstValue(ClaimTypes.NameIdentifier) ?? auth.Principal.FindFirstValue("sub");
Microsoft.AspNetCore.SignalR.Core (1)
DefaultUserIdProvider.cs (1)
17return connection.User.FindFirst(ClaimTypes.NameIdentifier)?.Value;
Microsoft.AspNetCore.SignalR.Specification.Tests (1)
src\aspnetcore\src\SignalR\common\testassets\Tests.Utils\TestClient.cs (1)
56claims.Add(new Claim(ClaimTypes.NameIdentifier, userIdentifier));
Microsoft.Extensions.Identity.Core (3)
ClaimsIdentityOptions.cs (2)
24/// Gets or sets the ClaimType used for the user identifier claim. Defaults to <see cref="ClaimTypes.NameIdentifier"/>. 26public string UserIdClaimType { get; set; } = ClaimTypes.NameIdentifier;
UserManager.cs (1)
442/// <remarks>The User ID claim is identified by <see cref="ClaimTypes.NameIdentifier"/>.</remarks>