13 references to FindFirst
Identity.ExternalClaims (1)
Pages\Account\ExternalLogin.cshtml.cs (1)
127await _userManager.AddClaimAsync(user, info.Principal.FindFirst(ClaimTypes.Gender));
Microsoft.AspNetCore.Authentication.OpenIdConnect (2)
OpenIdConnectHandler.cs (2)
163var sid = principal?.FindFirst(JwtRegisteredClaimNames.Sid)?.Value; 180var iss = principal?.FindFirst(JwtRegisteredClaimNames.Iss)?.Value;
Microsoft.AspNetCore.Authentication.Test (3)
JwtBearerTests.cs (1)
1195var identifier = context.User.FindFirst(ClaimTypes.NameIdentifier);
JwtBearerTests_Handler.cs (1)
1262var identifier = context.User.FindFirst(ClaimTypes.NameIdentifier);
TicketSerializerTests.cs (1)
109var readClaim = readTicket.Principal.FindFirst("type");
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
AuthenticationStateSerializationOptions.cs (1)
59if (authenticationState.User.FindFirst(data.NameClaimType) is { } nameClaim)
Microsoft.AspNetCore.Http.Connections (2)
Internal\HttpConnectionDispatcher.cs (2)
641var originalName = connection.User.FindFirst(ClaimTypes.NameIdentifier)?.Value; 642var newName = connection.HttpContext?.User.FindFirst(ClaimTypes.NameIdentifier)?.Value;
Microsoft.AspNetCore.Identity (2)
SignInManager.cs (2)
167var authenticationMethod = auth?.Principal?.FindFirst(ClaimTypes.AuthenticationMethod); 168var amr = auth?.Principal?.FindFirst("amr");
Microsoft.AspNetCore.SignalR.Core (1)
DefaultUserIdProvider.cs (1)
17return connection.User.FindFirst(ClaimTypes.NameIdentifier)?.Value;
Microsoft.Extensions.Identity.Core (1)
PrincipalExtensions.cs (1)
22var claim = principal.FindFirst(claimType);