5 references to UserNameClaimType
Microsoft.AspNetCore.Identity.Test (2)
IdentityOptionsTest.cs (1)
32
Assert.Equal(ClaimTypes.Name, options.ClaimsIdentity.
UserNameClaimType
);
UserClaimsPrincipalFactoryTest.cs (1)
97
claims, c => c.Type == manager.Options.ClaimsIdentity.
UserNameClaimType
&& c.Value == user.UserName);
Microsoft.Extensions.Identity.Core (3)
UserClaimsPrincipalFactory.cs (2)
76
Options.ClaimsIdentity.
UserNameClaimType
,
79
id.AddClaim(new Claim(Options.ClaimsIdentity.
UserNameClaimType
, userName!));
UserManager.cs (1)
410
return principal.FindFirstValue(Options.ClaimsIdentity.
UserNameClaimType
);