33 references to TwoFactorRememberMeScheme
Microsoft.AspNetCore.Identity (12)
IdentityCookiesBuilderExtensions.cs (3)
82
builder.AddCookie(IdentityConstants.
TwoFactorRememberMeScheme
, o =>
84
o.Cookie.Name = IdentityConstants.
TwoFactorRememberMeScheme
;
90
return new OptionsBuilder<CookieAuthenticationOptions>(builder.Services, IdentityConstants.
TwoFactorRememberMeScheme
);
IdentityServiceCollectionExtensions.cs (2)
72
.AddCookie(IdentityConstants.
TwoFactorRememberMeScheme
, o =>
74
o.Cookie.Name = IdentityConstants.
TwoFactorRememberMeScheme
;
SecurityStampValidator.cs (2)
160
await SignInManager.Context.SignOutAsync(IdentityConstants.
TwoFactorRememberMeScheme
);
183
/// <see cref="IdentityConstants.
TwoFactorRememberMeScheme
"/> cookies against the user's
SignInManager.cs (5)
433
if (await _schemes.GetSchemeAsync(IdentityConstants.
TwoFactorRememberMeScheme
) == null)
439
var result = await Context.AuthenticateAsync(IdentityConstants.
TwoFactorRememberMeScheme
);
452
await Context.SignInAsync(IdentityConstants.
TwoFactorRememberMeScheme
,
463
return Context.SignOutAsync(IdentityConstants.
TwoFactorRememberMeScheme
);
788
var rememberBrowserIdentity = new ClaimsIdentity(IdentityConstants.
TwoFactorRememberMeScheme
);
Microsoft.AspNetCore.Identity.InMemory.Test (2)
FunctionalTest.cs (2)
232
Assert.Contains(IdentityConstants.
TwoFactorRememberMeScheme
+ "=", setCookie);
261
Assert.Contains(IdentityConstants.
TwoFactorRememberMeScheme
+ "=", setCookie);
Microsoft.AspNetCore.Identity.Test (19)
IdentityOptionsTest.cs (1)
89
Assert.Equal("c", options.Get(IdentityConstants.
TwoFactorRememberMeScheme
).Cookie.Name);
SecurityStampValidatorTest.cs (4)
118
authService.Setup(c => c.SignOutAsync(httpContext.Object, IdentityConstants.
TwoFactorRememberMeScheme
, /*properties*/null)).Returns(Task.CompletedTask).Verifiable();
213
authService.Setup(c => c.SignOutAsync(httpContext.Object, IdentityConstants.
TwoFactorRememberMeScheme
, /*properties*/null)).Returns(Task.CompletedTask).Verifiable();
338
authService.Setup(c => c.SignOutAsync(httpContext.Object, IdentityConstants.
TwoFactorRememberMeScheme
, /*properties*/null)).Returns(Task.CompletedTask).Verifiable();
349
IdentityConstants.
TwoFactorRememberMeScheme
);
SignInManagerTest.cs (14)
214
var id = new ClaimsIdentity(IdentityConstants.
TwoFactorRememberMeScheme
);
216
auth.Setup(a => a.AuthenticateAsync(context, IdentityConstants.
TwoFactorRememberMeScheme
))
217
.ReturnsAsync(AuthenticateResult.Success(new AuthenticationTicket(new ClaimsPrincipal(id), null, IdentityConstants.
TwoFactorRememberMeScheme
))).Verifiable();
380
IdentityConstants.
TwoFactorRememberMeScheme
,
382
&& i.Identities.First().AuthenticationType == IdentityConstants.
TwoFactorRememberMeScheme
),
694
IdentityConstants.
TwoFactorRememberMeScheme
,
696
&& i.Identities.First().AuthenticationType == IdentityConstants.
TwoFactorRememberMeScheme
),
758
IdentityConstants.
TwoFactorRememberMeScheme
,
760
&& i.Identities.First().AuthenticationType == IdentityConstants.
TwoFactorRememberMeScheme
),
790
var id = new ClaimsIdentity(IdentityConstants.
TwoFactorRememberMeScheme
);
792
auth.Setup(a => a.AuthenticateAsync(context, IdentityConstants.
TwoFactorRememberMeScheme
))
793
.ReturnsAsync(AuthenticateResult.Success(new AuthenticationTicket(new ClaimsPrincipal(id), null, IdentityConstants.
TwoFactorRememberMeScheme
))).Verifiable();
1356
[IdentityConstants.
TwoFactorRememberMeScheme
] = CreateCookieScheme(IdentityConstants.
TwoFactorRememberMeScheme
),