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)
826
if (await _schemes.GetSchemeAsync(IdentityConstants.
TwoFactorRememberMeScheme
) == null)
832
var result = await Context.AuthenticateAsync(IdentityConstants.
TwoFactorRememberMeScheme
);
845
await Context.SignInAsync(IdentityConstants.
TwoFactorRememberMeScheme
,
856
return Context.SignOutAsync(IdentityConstants.
TwoFactorRememberMeScheme
);
1181
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)
95
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)
232
var id = new ClaimsIdentity(IdentityConstants.
TwoFactorRememberMeScheme
);
234
auth.Setup(a => a.AuthenticateAsync(context, IdentityConstants.
TwoFactorRememberMeScheme
))
235
.ReturnsAsync(AuthenticateResult.Success(new AuthenticationTicket(new ClaimsPrincipal(id), null, IdentityConstants.
TwoFactorRememberMeScheme
))).Verifiable();
430
IdentityConstants.
TwoFactorRememberMeScheme
,
432
&& i.Identities.First().AuthenticationType == IdentityConstants.
TwoFactorRememberMeScheme
),
796
IdentityConstants.
TwoFactorRememberMeScheme
,
798
&& i.Identities.First().AuthenticationType == IdentityConstants.
TwoFactorRememberMeScheme
),
860
IdentityConstants.
TwoFactorRememberMeScheme
,
862
&& i.Identities.First().AuthenticationType == IdentityConstants.
TwoFactorRememberMeScheme
),
892
var id = new ClaimsIdentity(IdentityConstants.
TwoFactorRememberMeScheme
);
894
auth.Setup(a => a.AuthenticateAsync(context, IdentityConstants.
TwoFactorRememberMeScheme
))
895
.ReturnsAsync(AuthenticateResult.Success(new AuthenticationTicket(new ClaimsPrincipal(id), null, IdentityConstants.
TwoFactorRememberMeScheme
))).Verifiable();
1566
[IdentityConstants.
TwoFactorRememberMeScheme
] = CreateCookieScheme(IdentityConstants.
TwoFactorRememberMeScheme
),