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