39 references to TwoFactorUserIdScheme
Microsoft.AspNetCore.Identity (14)
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 (8)
259
if (await _schemes.GetSchemeAsync(IdentityConstants.
TwoFactorUserIdScheme
) != null)
261
await Context.SignOutAsync(IdentityConstants.
TwoFactorUserIdScheme
);
513
if (await _schemes.GetSchemeAsync(IdentityConstants.
TwoFactorUserIdScheme
) != null)
515
await Context.SignOutAsync(IdentityConstants.
TwoFactorUserIdScheme
);
776
var identity = new ClaimsIdentity(IdentityConstants.
TwoFactorUserIdScheme
);
833
if (await _schemes.GetSchemeAsync(IdentityConstants.
TwoFactorUserIdScheme
) != null)
837
await Context.SignInAsync(IdentityConstants.
TwoFactorUserIdScheme
, StoreTwoFactorInfo(userId, loginProvider));
866
var result = await Context.AuthenticateAsync(IdentityConstants.
TwoFactorUserIdScheme
);
Microsoft.AspNetCore.Identity.InMemory.Test (1)
FunctionalTest.cs (1)
355
var result = await context.AuthenticateAsync(IdentityConstants.
TwoFactorUserIdScheme
);
Microsoft.AspNetCore.Identity.Test (24)
IdentityOptionsTest.cs (1)
90
Assert.Equal("d", options.Get(IdentityConstants.
TwoFactorUserIdScheme
).Cookie.Name);
SignInManagerTest.cs (23)
283
auth.Setup(a => a.SignInAsync(context, IdentityConstants.
TwoFactorUserIdScheme
,
327
auth.Setup(a => a.SignInAsync(context, IdentityConstants.
TwoFactorUserIdScheme
,
375
auth.Setup(a => a.AuthenticateAsync(context, IdentityConstants.
TwoFactorUserIdScheme
))
376
.ReturnsAsync(AuthenticateResult.Success(new AuthenticationTicket(id, null, IdentityConstants.
TwoFactorUserIdScheme
))).Verifiable();
416
auth.Setup(a => a.AuthenticateAsync(context, IdentityConstants.
TwoFactorUserIdScheme
))
417
.ReturnsAsync(AuthenticateResult.Success(new AuthenticationTicket(id, null, IdentityConstants.
TwoFactorUserIdScheme
))).Verifiable();
455
auth.Setup(a => a.AuthenticateAsync(context, IdentityConstants.
TwoFactorUserIdScheme
))
456
.ReturnsAsync(AuthenticateResult.Success(new AuthenticationTicket(id, null, IdentityConstants.
TwoFactorUserIdScheme
))).Verifiable();
539
auth.Setup(a => a.SignOutAsync(context, IdentityConstants.
TwoFactorUserIdScheme
, It.IsAny<AuthenticationProperties>())).Returns(Task.FromResult(0)).Verifiable();
545
auth.Setup(a => a.AuthenticateAsync(context, IdentityConstants.
TwoFactorUserIdScheme
))
546
.ReturnsAsync(AuthenticateResult.Success(new AuthenticationTicket(id, null, IdentityConstants.
TwoFactorUserIdScheme
))).Verifiable();
685
auth.Setup(a => a.SignOutAsync(context, IdentityConstants.
TwoFactorUserIdScheme
, It.IsAny<AuthenticationProperties>())).Returns(Task.FromResult(0)).Verifiable();
700
auth.Setup(a => a.AuthenticateAsync(context, IdentityConstants.
TwoFactorUserIdScheme
))
701
.ReturnsAsync(AuthenticateResult.Success(new AuthenticationTicket(id, null, IdentityConstants.
TwoFactorUserIdScheme
))).Verifiable();
735
auth.Setup(a => a.AuthenticateAsync(context, IdentityConstants.
TwoFactorUserIdScheme
))
736
.ReturnsAsync(AuthenticateResult.Success(new AuthenticationTicket(id, null, IdentityConstants.
TwoFactorUserIdScheme
))).Verifiable();
820
auth.Setup(a => a.SignOutAsync(context, IdentityConstants.
TwoFactorUserIdScheme
, It.IsAny<AuthenticationProperties>())).Returns(Task.FromResult(0)).Verifiable();
1201
auth.Setup(a => a.AuthenticateAsync(context, IdentityConstants.
TwoFactorUserIdScheme
))
1202
.ReturnsAsync(AuthenticateResult.Success(new AuthenticationTicket(id, null, IdentityConstants.
TwoFactorUserIdScheme
))).Verifiable();
1267
auth.Setup(a => a.AuthenticateAsync(context, IdentityConstants.
TwoFactorUserIdScheme
))
1268
.ReturnsAsync(AuthenticateResult.Success(new AuthenticationTicket(id, null, IdentityConstants.
TwoFactorUserIdScheme
))).Verifiable();
1357
[IdentityConstants.
TwoFactorUserIdScheme
] = CreateCookieScheme(IdentityConstants.
TwoFactorUserIdScheme
),