27 references to FindByIdAsync
Identity.ExternalClaims (1)
Pages\Account\ConfirmEmail.cshtml.cs (1)
31var user = await _userManager.FindByIdAsync(userId);
IdentitySample.Mvc (1)
Controllers\AccountController.cs (1)
243var user = await _userManager.FindByIdAsync(userId);
IdentitySample.PasskeyConformance (1)
Program.cs (1)
113var user = await userManager.FindByIdAsync(userEntity.Id);
Microsoft.AspNetCore.Identity (6)
IdentityApiEndpointRouteBuilderExtensions.cs (1)
146if (await userManager.FindByIdAsync(userId) is not { } user)
PasskeyHandler.cs (3)
91var existingUser = await _userManager.FindByIdAsync(userEntity.Id).ConfigureAwait(false); 406user = await _userManager.FindByIdAsync(originalUserId).ConfigureAwait(false) 459user = await _userManager.FindByIdAsync(userHandle).ConfigureAwait(false);
SignInManager.cs (2)
362var user = await UserManager.FindByIdAsync(principal.Identity.Name); 1270var user = await UserManager.FindByIdAsync(userId);
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (7)
SqlStoreOnlyUsersTestBase.cs (1)
168var userById = await manager.FindByIdAsync(user.Id.ToString());
SqlStoreTestBase.cs (1)
274var userById = await manager.FindByIdAsync(user.Id.ToString());
UserStoreTest.cs (5)
228var user1 = await manager1.FindByIdAsync(user.Id); 229var user2 = await manager2.FindByIdAsync(user.Id); 259var user2 = await manager2.FindByIdAsync(user.Id); 288var user1 = await manager1.FindByIdAsync(user.Id); 289var user2 = await manager2.FindByIdAsync(user.Id);
Microsoft.AspNetCore.Identity.Specification.Tests (2)
UserManagerSpecificationTests.cs (2)
210Assert.Null(await manager.FindByIdAsync(userId)); 346Assert.NotNull(await manager.FindByIdAsync(await manager.GetUserIdAsync(user)));
Microsoft.AspNetCore.Identity.Test (4)
Passkeys\PasskeyHandlerAssertionTest.cs (1)
1029.Setup(m => m.FindByIdAsync(User.Id))
SignInManagerTest.cs (1)
129manager.Setup(m => m.FindByIdAsync(user.Id)).ReturnsAsync(user);
UserManagerTest.cs (2)
254var result = await userManager.FindByIdAsync(user.Id); 1513await Assert.ThrowsAsync<ObjectDisposedException>(() => manager.FindByIdAsync(null));
Microsoft.AspNetCore.Identity.UI (4)
Areas\Identity\Pages\V4\Account\ConfirmEmail.cshtml.cs (1)
50var user = await _userManager.FindByIdAsync(userId);
Areas\Identity\Pages\V4\Account\ConfirmEmailChange.cshtml.cs (1)
52var user = await _userManager.FindByIdAsync(userId);
Areas\Identity\Pages\V5\Account\ConfirmEmail.cshtml.cs (1)
50var user = await _userManager.FindByIdAsync(userId);
Areas\Identity\Pages\V5\Account\ConfirmEmailChange.cshtml.cs (1)
52var user = await _userManager.FindByIdAsync(userId);
Microsoft.Extensions.Identity.Core (1)
UserManager.cs (1)
458return id == null ? Task.FromResult<TUser?>(null) : FindByIdAsync(id);