79 references to GetUserAsync
Identity.ExternalClaims (18)
Pages\Account\Manage\ChangePassword.cshtml.cs (2)
60var user = await _userManager.GetUserAsync(User); 82var user = await _userManager.GetUserAsync(User);
Pages\Account\Manage\Disable2fa.cshtml.cs (2)
31var user = await _userManager.GetUserAsync(User); 47var user = await _userManager.GetUserAsync(User);
Pages\Account\Manage\EnableAuthenticator.cshtml.cs (2)
57var user = await _userManager.GetUserAsync(User); 75var user = await _userManager.GetUserAsync(User);
Pages\Account\Manage\ExternalLogins.cshtml.cs (3)
40var user = await _userManager.GetUserAsync(User); 56var user = await _userManager.GetUserAsync(User); 86var user = await _userManager.GetUserAsync(User);
Pages\Account\Manage\GenerateRecoveryCodes.cshtml.cs (1)
33var user = await _userManager.GetUserAsync(User);
Pages\Account\Manage\Index.cshtml.cs (3)
57var user = await _userManager.GetUserAsync(User); 83var user = await _userManager.GetUserAsync(User); 117var user = await _userManager.GetUserAsync(User);
Pages\Account\Manage\ResetAuthenticator.cshtml.cs (2)
30var user = await _userManager.GetUserAsync(User); 41var user = await _userManager.GetUserAsync(User);
Pages\Account\Manage\SetPassword.cshtml.cs (2)
51var user = await _userManager.GetUserAsync(User); 74var user = await _userManager.GetUserAsync(User);
Pages\Account\Manage\TwoFactorAuthentication.cshtml.cs (1)
41var user = await _userManager.GetUserAsync(User);
IdentitySample.DefaultUI (2)
Areas\Identity\Pages\Account\Manage\Index.cshtml.cs (2)
52var user = await _userManager.GetUserAsync(User); 76var user = await _userManager.GetUserAsync(User);
IdentitySample.Mvc (2)
Controllers\AccountController.cs (1)
547return _userManager.GetUserAsync(HttpContext.User);
Controllers\ManageController.cs (1)
373return _userManager.GetUserAsync(HttpContext.User);
Microsoft.AspNetCore.Identity (4)
IdentityApiEndpointRouteBuilderExtensions.cs (3)
265if (await userManager.GetUserAsync(claimsPrincipal) is not { } user) 340if (await userManager.GetUserAsync(claimsPrincipal) is not { } user) 352if (await userManager.GetUserAsync(claimsPrincipal) is not { } user)
SignInManager.cs (1)
278var user = await UserManager.GetUserAsync(principal);
Microsoft.AspNetCore.Identity.Test (1)
SecurityStampValidatorTest.cs (1)
170userManager.Setup(u => u.GetUserAsync(It.IsAny<ClaimsPrincipal>())).ReturnsAsync(user).Verifiable();
Microsoft.AspNetCore.Identity.UI (52)
Areas\Identity\Pages\V4\Account\Manage\ChangePassword.cshtml.cs (2)
98var user = await _userManager.GetUserAsync(User); 120var user = await _userManager.GetUserAsync(User);
Areas\Identity\Pages\V4\Account\Manage\DeletePersonalData.cshtml.cs (2)
77var user = await _userManager.GetUserAsync(User); 89var user = await _userManager.GetUserAsync(User);
Areas\Identity\Pages\V4\Account\Manage\Disable2fa.cshtml.cs (2)
52var user = await _userManager.GetUserAsync(User); 68var user = await _userManager.GetUserAsync(User);
Areas\Identity\Pages\V4\Account\Manage\DownloadPersonalData.cshtml.cs (1)
52var user = await _userManager.GetUserAsync(User);
Areas\Identity\Pages\V4\Account\Manage\Email.cshtml.cs (3)
112var user = await _userManager.GetUserAsync(User); 124var user = await _userManager.GetUserAsync(User); 159var user = await _userManager.GetUserAsync(User);
Areas\Identity\Pages\V4\Account\Manage\EnableAuthenticator.cshtml.cs (2)
105var user = await _userManager.GetUserAsync(User); 118var user = await _userManager.GetUserAsync(User);
Areas\Identity\Pages\V4\Account\Manage\ExternalLogins.cshtml.cs (3)
86var user = await _userManager.GetUserAsync(User); 109var user = await _userManager.GetUserAsync(User); 140var user = await _userManager.GetUserAsync(User);
Areas\Identity\Pages\V4\Account\Manage\GenerateRecoveryCodes.cshtml.cs (2)
60var user = await _userManager.GetUserAsync(User); 77var user = await _userManager.GetUserAsync(User);
Areas\Identity\Pages\V4\Account\Manage\Index.cshtml.cs (2)
93var user = await _userManager.GetUserAsync(User); 105var user = await _userManager.GetUserAsync(User);
Areas\Identity\Pages\V4\Account\Manage\PersonalData.cshtml.cs (1)
39var user = await _userManager.GetUserAsync(User);
Areas\Identity\Pages\V4\Account\Manage\ResetAuthenticator.cshtml.cs (2)
55var user = await _userManager.GetUserAsync(User); 66var user = await _userManager.GetUserAsync(User);
Areas\Identity\Pages\V4\Account\Manage\SetPassword.cshtml.cs (2)
85var user = await _userManager.GetUserAsync(User); 108var user = await _userManager.GetUserAsync(User);
Areas\Identity\Pages\V4\Account\Manage\TwoFactorAuthentication.cshtml.cs (2)
78var user = await _userManager.GetUserAsync(User); 94var user = await _userManager.GetUserAsync(User);
Areas\Identity\Pages\V5\Account\Manage\ChangePassword.cshtml.cs (2)
98var user = await _userManager.GetUserAsync(User); 120var user = await _userManager.GetUserAsync(User);
Areas\Identity\Pages\V5\Account\Manage\DeletePersonalData.cshtml.cs (2)
77var user = await _userManager.GetUserAsync(User); 89var user = await _userManager.GetUserAsync(User);
Areas\Identity\Pages\V5\Account\Manage\Disable2fa.cshtml.cs (2)
52var user = await _userManager.GetUserAsync(User); 68var user = await _userManager.GetUserAsync(User);
Areas\Identity\Pages\V5\Account\Manage\DownloadPersonalData.cshtml.cs (1)
52var user = await _userManager.GetUserAsync(User);
Areas\Identity\Pages\V5\Account\Manage\Email.cshtml.cs (3)
112var user = await _userManager.GetUserAsync(User); 124var user = await _userManager.GetUserAsync(User); 159var user = await _userManager.GetUserAsync(User);
Areas\Identity\Pages\V5\Account\Manage\EnableAuthenticator.cshtml.cs (2)
105var user = await _userManager.GetUserAsync(User); 118var user = await _userManager.GetUserAsync(User);
Areas\Identity\Pages\V5\Account\Manage\ExternalLogins.cshtml.cs (3)
86var user = await _userManager.GetUserAsync(User); 109var user = await _userManager.GetUserAsync(User); 140var user = await _userManager.GetUserAsync(User);
Areas\Identity\Pages\V5\Account\Manage\GenerateRecoveryCodes.cshtml.cs (2)
60var user = await _userManager.GetUserAsync(User); 77var user = await _userManager.GetUserAsync(User);
Areas\Identity\Pages\V5\Account\Manage\Index.cshtml.cs (2)
93var user = await _userManager.GetUserAsync(User); 105var user = await _userManager.GetUserAsync(User);
Areas\Identity\Pages\V5\Account\Manage\PersonalData.cshtml.cs (1)
39var user = await _userManager.GetUserAsync(User);
Areas\Identity\Pages\V5\Account\Manage\ResetAuthenticator.cshtml.cs (2)
55var user = await _userManager.GetUserAsync(User); 66var user = await _userManager.GetUserAsync(User);
Areas\Identity\Pages\V5\Account\Manage\SetPassword.cshtml.cs (2)
85var user = await _userManager.GetUserAsync(User); 108var user = await _userManager.GetUserAsync(User);
Areas\Identity\Pages\V5\Account\Manage\TwoFactorAuthentication.cshtml.cs (2)
78var user = await _userManager.GetUserAsync(User); 94var user = await _userManager.GetUserAsync(User);