11 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)
770
new Claim(ClaimTypes.
NameIdentifier
,
Model\ValidateTokenMiddleware.cs (1)
94
[new Claim(ClaimTypes.
NameIdentifier
, "Local")],
Microsoft.AspNetCore.Antiforgery (1)
Internal\DefaultClaimUidExtractor.cs (1)
60
claim => string.Equals(ClaimTypes.
NameIdentifier
, claim.Type, StringComparison.Ordinal));
Microsoft.AspNetCore.Http.Connections (2)
Internal\HttpConnectionDispatcher.cs (2)
646
var originalName = connection.User.FindFirst(ClaimTypes.
NameIdentifier
)?.Value;
647
var newName = connection.HttpContext?.User.FindFirst(ClaimTypes.
NameIdentifier
)?.Value;
Microsoft.AspNetCore.Identity (1)
SignInManager.cs (1)
1108
var providerKey = auth.Principal.FindFirstValue(ClaimTypes.
NameIdentifier
) ?? auth.Principal.FindFirstValue("sub");
Microsoft.AspNetCore.SignalR.Core (1)
DefaultUserIdProvider.cs (1)
17
return connection.User.FindFirst(ClaimTypes.
NameIdentifier
)?.Value;
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
"/>.
26
public string UserIdClaimType { get; set; } = ClaimTypes.
NameIdentifier
;
UserManager.cs (1)
442
/// <remarks>The User ID claim is identified by <see cref="ClaimTypes.
NameIdentifier
"/>.</remarks>