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