1 write to Principal
Microsoft.AspNetCore.Identity (1)
ExternalLoginInfo.cs (1)
24
Principal
= principal;
9 references to Principal
Identity.ExternalClaims (4)
Pages\Account\ExternalLogin.cshtml.cs (4)
86
_logger.LogInformation("{Name} logged in with {LoginProvider} provider.", info.
Principal
.Identity.Name, info.LoginProvider);
98
if (info.
Principal
.HasClaim(c => c.Type == ClaimTypes.Email))
102
Email = info.
Principal
.FindFirstValue(ClaimTypes.Email)
127
await _userManager.AddClaimAsync(user, info.
Principal
.FindFirst(ClaimTypes.Gender));
IdentitySample.Mvc (1)
Controllers\AccountController.cs (1)
191
var email = info.
Principal
.FindFirstValue(ClaimTypes.Email);
Microsoft.AspNetCore.Identity.UI (4)
Areas\Identity\Pages\V4\Account\ExternalLogin.cshtml.cs (2)
159
if (info.
Principal
!.HasClaim(c => c.Type == ClaimTypes.Email))
163
Email = info.
Principal
.FindFirstValue(ClaimTypes.Email)!
Areas\Identity\Pages\V5\Account\ExternalLogin.cshtml.cs (2)
159
if (info.
Principal
.HasClaim(c => c.Type == ClaimTypes.Email))
163
Email = info.
Principal
.FindFirstValue(ClaimTypes.Email)!