59 references to GetUserIdAsync
Identity.ExternalClaims (1)
Pages\Account\Manage\ExternalLogins.cshtml.cs (1)
92
var info = await _signInManager.GetExternalLoginInfoAsync(await _userManager.
GetUserIdAsync
(user));
IdentitySample.Mvc (1)
Controllers\ManageController.cs (1)
339
var info = await _signInManager.GetExternalLoginInfoAsync(await _userManager.
GetUserIdAsync
(user));
Microsoft.AspNetCore.Identity (6)
DataProtectorTokenProvider.cs (2)
80
var userId = await manager.
GetUserIdAsync
(user);
125
var actualUserId = await manager.
GetUserIdAsync
(user);
IdentityApiEndpointRouteBuilderExtensions.cs (1)
400
var userId = await userManager.
GetUserIdAsync
(user);
SignInManager.cs (3)
438
var userId = await UserManager.
GetUserIdAsync
(user);
787
var userId = await UserManager.
GetUserIdAsync
(user);
836
var userId = await UserManager.
GetUserIdAsync
(user);
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (1)
UserStoreWithGenericsTest.cs (1)
108
var userId = await manager.
GetUserIdAsync
(user);
Microsoft.AspNetCore.Identity.FunctionalTests (2)
MapIdentityApiTests.cs (2)
1491
return MakeToken(purpose, await manager.
GetUserIdAsync
(user));
1496
return token == MakeToken(purpose, await manager.
GetUserIdAsync
(user));
Microsoft.AspNetCore.Identity.Specification.Tests (15)
UserManagerSpecificationTests.cs (15)
195
await manager.
GetUserIdAsync
(user);
208
var userId = await manager.
GetUserIdAsync
(user);
327
await manager.
GetUserIdAsync
(user);
346
Assert.NotNull(await manager.FindByIdAsync(await manager.
GetUserIdAsync
(user)));
579
var providerKey = await manager.
GetUserIdAsync
(user);
599
var userId = await manager.
GetUserIdAsync
(user);
639
var userId = await manager.
GetUserIdAsync
(user);
714
await manager.
GetUserIdAsync
(user);
963
return MakeToken(purpose, await manager.
GetUserIdAsync
(user));
968
return token == MakeToken(purpose, await manager.
GetUserIdAsync
(user));
1000
await manager.
GetUserIdAsync
(user);
1068
await manager.
GetUserIdAsync
(user);
1098
await manager.
GetUserIdAsync
(user);
1477
await manager.
GetUserIdAsync
(user);
1808
await manager.
GetUserIdAsync
(user);
Microsoft.AspNetCore.Identity.Test (3)
SecurityStampValidatorTest.cs (1)
325
userManager.Setup(u => u.
GetUserIdAsync
(user)).ReturnsAsync(user.Id).Verifiable();
SignInManagerTest.cs (1)
95
manager.Setup(m => m.
GetUserIdAsync
(user)).ReturnsAsync(user.Id.ToString());
UserClaimsPrincipalFactoryTest.cs (1)
49
userManager.Setup(m => m.
GetUserIdAsync
(user)).ReturnsAsync(user.Id);
Microsoft.AspNetCore.Identity.UI (24)
Areas\Identity\Pages\V4\Account\ExternalLogin.cshtml.cs (1)
199
var userId = await _userManager.
GetUserIdAsync
(user);
Areas\Identity\Pages\V4\Account\LoginWith2fa.cshtml.cs (1)
128
await _userManager.
GetUserIdAsync
(user);
Areas\Identity\Pages\V4\Account\LoginWithRecoveryCode.cshtml.cs (1)
111
await _userManager.
GetUserIdAsync
(user);
Areas\Identity\Pages\V4\Account\Manage\DeletePersonalData.cshtml.cs (1)
106
await _userManager.
GetUserIdAsync
(user);
Areas\Identity\Pages\V4\Account\Manage\Email.cshtml.cs (2)
139
var userId = await _userManager.
GetUserIdAsync
(user);
171
var userId = await _userManager.
GetUserIdAsync
(user);
Areas\Identity\Pages\V4\Account\Manage\EnableAuthenticator.cshtml.cs (1)
144
await _userManager.
GetUserIdAsync
(user);
Areas\Identity\Pages\V4\Account\Manage\ExternalLogins.cshtml.cs (1)
146
var userId = await _userManager.
GetUserIdAsync
(user);
Areas\Identity\Pages\V4\Account\Manage\ResetAuthenticator.cshtml.cs (1)
74
await _userManager.
GetUserIdAsync
(user);
Areas\Identity\Pages\V4\Account\Register.cshtml.cs (1)
139
var userId = await _userManager.
GetUserIdAsync
(user);
Areas\Identity\Pages\V4\Account\RegisterConfirmation.cshtml.cs (1)
75
var userId = await _userManager.
GetUserIdAsync
(user);
Areas\Identity\Pages\V4\Account\ResendEmailConfirmation.cshtml.cs (1)
86
var userId = await _userManager.
GetUserIdAsync
(user);
Areas\Identity\Pages\V5\Account\ExternalLogin.cshtml.cs (1)
199
var userId = await _userManager.
GetUserIdAsync
(user);
Areas\Identity\Pages\V5\Account\LoginWith2fa.cshtml.cs (1)
128
await _userManager.
GetUserIdAsync
(user);
Areas\Identity\Pages\V5\Account\LoginWithRecoveryCode.cshtml.cs (1)
111
await _userManager.
GetUserIdAsync
(user);
Areas\Identity\Pages\V5\Account\Manage\DeletePersonalData.cshtml.cs (1)
106
await _userManager.
GetUserIdAsync
(user);
Areas\Identity\Pages\V5\Account\Manage\Email.cshtml.cs (2)
139
var userId = await _userManager.
GetUserIdAsync
(user);
171
var userId = await _userManager.
GetUserIdAsync
(user);
Areas\Identity\Pages\V5\Account\Manage\EnableAuthenticator.cshtml.cs (1)
144
await _userManager.
GetUserIdAsync
(user);
Areas\Identity\Pages\V5\Account\Manage\ExternalLogins.cshtml.cs (1)
146
var userId = await _userManager.
GetUserIdAsync
(user);
Areas\Identity\Pages\V5\Account\Manage\ResetAuthenticator.cshtml.cs (1)
74
await _userManager.
GetUserIdAsync
(user);
Areas\Identity\Pages\V5\Account\Register.cshtml.cs (1)
139
var userId = await _userManager.
GetUserIdAsync
(user);
Areas\Identity\Pages\V5\Account\RegisterConfirmation.cshtml.cs (1)
75
var userId = await _userManager.
GetUserIdAsync
(user);
Areas\Identity\Pages\V5\Account\ResendEmailConfirmation.cshtml.cs (1)
86
var userId = await _userManager.
GetUserIdAsync
(user);
Microsoft.Extensions.Identity.Core (6)
TotpSecurityStampBasedTokenProvider.cs (1)
86
var userId = await manager.
GetUserIdAsync
(user).ConfigureAwait(false);
UserClaimsPrincipalFactory.cs (1)
73
var userId = await UserManager.
GetUserIdAsync
(user).ConfigureAwait(false);
UserValidator.cs (4)
71
!string.Equals(await manager.
GetUserIdAsync
(owner).ConfigureAwait(false), await manager.
GetUserIdAsync
(user).ConfigureAwait(false)))
99
!string.Equals(await manager.
GetUserIdAsync
(owner).ConfigureAwait(false), await manager.
GetUserIdAsync
(user).ConfigureAwait(false)))