18 references to TwoFactorUserIdScheme
Microsoft.AspNetCore.Identity (18)
IdentityCookiesBuilderExtensions.cs (3)
100
builder.AddCookie(IdentityConstants.
TwoFactorUserIdScheme
, o =>
102
o.Cookie.Name = IdentityConstants.
TwoFactorUserIdScheme
;
109
return new OptionsBuilder<CookieAuthenticationOptions>(builder.Services, IdentityConstants.
TwoFactorUserIdScheme
);
IdentityServiceCollectionExtensions.cs (2)
80
.AddCookie(IdentityConstants.
TwoFactorUserIdScheme
, o =>
82
o.Cookie.Name = IdentityConstants.
TwoFactorUserIdScheme
;
SecurityStampValidator.cs (1)
187
/// Used to validate the <see cref="IdentityConstants.
TwoFactorUserIdScheme
"/> and
SignInManager.cs (12)
321
if (await _schemes.GetSchemeAsync(IdentityConstants.
TwoFactorUserIdScheme
) != null)
323
await Context.SignOutAsync(IdentityConstants.
TwoFactorUserIdScheme
);
722
var claimsIdentity = new ClaimsIdentity(IdentityConstants.
TwoFactorUserIdScheme
);
724
await Context.SignInAsync(IdentityConstants.
TwoFactorUserIdScheme
, claimsPrincipal, props);
733
var result = await Context.AuthenticateAsync(IdentityConstants.
TwoFactorUserIdScheme
);
734
await Context.SignOutAsync(IdentityConstants.
TwoFactorUserIdScheme
);
883
if (await _schemes.GetSchemeAsync(IdentityConstants.
TwoFactorUserIdScheme
) != null)
885
await Context.SignOutAsync(IdentityConstants.
TwoFactorUserIdScheme
);
1197
var identity = new ClaimsIdentity(IdentityConstants.
TwoFactorUserIdScheme
);
1254
if (await _schemes.GetSchemeAsync(IdentityConstants.
TwoFactorUserIdScheme
) != null)
1258
await Context.SignInAsync(IdentityConstants.
TwoFactorUserIdScheme
, StoreTwoFactorInfo(userId, loginProvider));
1287
var result = await Context.AuthenticateAsync(IdentityConstants.
TwoFactorUserIdScheme
);