1 write to _userManager
Identity.ExternalClaims (1)
Pages\Account\Manage\ExternalLogins.cshtml.cs (1)
25
_userManager
= userManager;
11 references to _userManager
Identity.ExternalClaims (11)
Pages\Account\Manage\ExternalLogins.cshtml.cs (11)
40
var user = await
_userManager
.GetUserAsync(User);
43
throw new ApplicationException($"Unable to load user with ID '{
_userManager
.GetUserId(User)}'.");
46
CurrentLogins = await
_userManager
.GetLoginsAsync(user);
56
var user = await
_userManager
.GetUserAsync(User);
59
throw new ApplicationException($"Unable to load user with ID '{
_userManager
.GetUserId(User)}'.");
62
var result = await
_userManager
.RemoveLoginAsync(user, loginProvider, providerKey);
80
var properties = _signInManager.ConfigureExternalAuthenticationProperties(provider, redirectUrl,
_userManager
.GetUserId(User));
86
var user = await
_userManager
.GetUserAsync(User);
89
throw new ApplicationException($"Unable to load user with ID '{
_userManager
.GetUserId(User)}'.");
92
var info = await _signInManager.GetExternalLoginInfoAsync(await
_userManager
.GetUserIdAsync(user));
98
var result = await
_userManager
.AddLoginAsync(user, info);