21 references to AddLoginAsync
Identity.ExternalClaims (2)
Pages\Account\ExternalLogin.cshtml.cs (1)
123result = await _userManager.AddLoginAsync(user, info);
Pages\Account\Manage\ExternalLogins.cshtml.cs (1)
98var result = await _userManager.AddLoginAsync(user, info);
IdentitySample.Mvc (2)
Controllers\AccountController.cs (1)
215result = await _userManager.AddLoginAsync(user, info);
Controllers\ManageController.cs (1)
344var result = await _userManager.AddLoginAsync(user, info);
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (3)
SqlStoreOnlyUsersTestBase.cs (1)
146IdentityResultAssert.IsSuccess(await manager.AddLoginAsync(user, new UserLoginInfo("provider", user.Id.ToString(), "display")));
SqlStoreTestBase.cs (1)
248IdentityResultAssert.IsSuccess(await manager.AddLoginAsync(user, new UserLoginInfo("provider", user.Id.ToString(), "display")));
UserStoreEncryptPersonalDataTest.cs (1)
82IdentityResultAssert.IsSuccess(await manager.AddLoginAsync(user, login));
Microsoft.AspNetCore.Identity.InMemory.Test (1)
ControllerTest.cs (1)
102IdentityResultAssert.IsSuccess(await userManager.AddLoginAsync(user, new UserLoginInfo(authScheme, externalId, "whatever")));
Microsoft.AspNetCore.Identity.Specification.Tests (5)
UserManagerSpecificationTests.cs (5)
580IdentityResultAssert.IsSuccess(await manager.AddLoginAsync(user, new UserLoginInfo(provider, providerKey, display))); 601IdentityResultAssert.IsSuccess(await manager.AddLoginAsync(user, login)); 642IdentityResultAssert.IsSuccess(await manager.AddLoginAsync(user, login)); 903IdentityResultAssert.IsSuccess(await manager.AddLoginAsync(user, login)); 904var result = await manager.AddLoginAsync(user, login);
Microsoft.AspNetCore.Identity.Test (4)
UserManagerTest.cs (4)
752await Assert.ThrowsAsync<NotSupportedException>(async () => await manager.AddLoginAsync(null, null)); 1034await Assert.ThrowsAsync<ArgumentNullException>("login", async () => await manager.AddLoginAsync(null, null)); 1057async () => await manager.AddLoginAsync(null, new UserLoginInfo("", "", ""))); 1153await Assert.ThrowsAsync<ObjectDisposedException>(() => manager.AddLoginAsync(null, null));
Microsoft.AspNetCore.Identity.UI (4)
Areas\Identity\Pages\V4\Account\ExternalLogin.cshtml.cs (1)
191result = await _userManager.AddLoginAsync(user, info);
Areas\Identity\Pages\V4\Account\Manage\ExternalLogins.cshtml.cs (1)
153var result = await _userManager.AddLoginAsync(user, info);
Areas\Identity\Pages\V5\Account\ExternalLogin.cshtml.cs (1)
191result = await _userManager.AddLoginAsync(user, info);
Areas\Identity\Pages\V5\Account\Manage\ExternalLogins.cshtml.cs (1)
153var result = await _userManager.AddLoginAsync(user, info);