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)
182
/// Used to validate the <see cref="IdentityConstants.
TwoFactorUserIdScheme
"/> and
SignInManager.cs (12)
317
if (await _schemes.GetSchemeAsync(IdentityConstants.
TwoFactorUserIdScheme
) != null)
319
await Context.SignOutAsync(IdentityConstants.
TwoFactorUserIdScheme
);
704
var claimsIdentity = new ClaimsIdentity(IdentityConstants.
TwoFactorUserIdScheme
);
706
await Context.SignInAsync(IdentityConstants.
TwoFactorUserIdScheme
, claimsPrincipal, props);
715
var result = await Context.AuthenticateAsync(IdentityConstants.
TwoFactorUserIdScheme
);
716
await Context.SignOutAsync(IdentityConstants.
TwoFactorUserIdScheme
);
865
if (await _schemes.GetSchemeAsync(IdentityConstants.
TwoFactorUserIdScheme
) != null)
867
await Context.SignOutAsync(IdentityConstants.
TwoFactorUserIdScheme
);
1179
var identity = new ClaimsIdentity(IdentityConstants.
TwoFactorUserIdScheme
);
1236
if (await _schemes.GetSchemeAsync(IdentityConstants.
TwoFactorUserIdScheme
) != null)
1240
await Context.SignInAsync(IdentityConstants.
TwoFactorUserIdScheme
, StoreTwoFactorInfo(userId, loginProvider));
1269
var result = await Context.AuthenticateAsync(IdentityConstants.
TwoFactorUserIdScheme
);