38 references to TwoFactorRememberMeScheme
Microsoft.AspNetCore.Identity (16)
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 (9)
732
if (await _schemes.GetSchemeAsync(IdentityConstants.
TwoFactorRememberMeScheme
) == null)
738
var result = await Context.AuthenticateAsync(IdentityConstants.
TwoFactorRememberMeScheme
);
753
await Context.SignInAsync(IdentityConstants.
TwoFactorRememberMeScheme
,
756
_metrics?.RememberTwoFactorClient(typeof(TUser).FullName!, IdentityConstants.
TwoFactorRememberMeScheme
);
760
_metrics?.RememberTwoFactorClient(typeof(TUser).FullName!, IdentityConstants.
TwoFactorRememberMeScheme
, ex);
773
await Context.SignOutAsync(IdentityConstants.
TwoFactorRememberMeScheme
);
774
_metrics?.ForgetTwoFactorClient(typeof(TUser).FullName!, IdentityConstants.
TwoFactorRememberMeScheme
);
778
_metrics?.ForgetTwoFactorClient(typeof(TUser).FullName!, IdentityConstants.
TwoFactorRememberMeScheme
, ex);
1171
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 (20)
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 (15)
261
var id = new ClaimsIdentity(IdentityConstants.
TwoFactorRememberMeScheme
);
263
auth.Setup(a => a.AuthenticateAsync(context, IdentityConstants.
TwoFactorRememberMeScheme
))
264
.ReturnsAsync(AuthenticateResult.Success(new AuthenticationTicket(new ClaimsPrincipal(id), null, IdentityConstants.
TwoFactorRememberMeScheme
))).Verifiable();
566
IdentityConstants.
TwoFactorRememberMeScheme
,
568
&& i.Identities.First().AuthenticationType == IdentityConstants.
TwoFactorRememberMeScheme
),
989
IdentityConstants.
TwoFactorRememberMeScheme
,
991
&& i.Identities.First().AuthenticationType == IdentityConstants.
TwoFactorRememberMeScheme
),
1056
IdentityConstants.
TwoFactorRememberMeScheme
,
1058
&& i.Identities.First().AuthenticationType == IdentityConstants.
TwoFactorRememberMeScheme
),
1090
IdentityConstants.
TwoFactorRememberMeScheme
,
1128
var id = new ClaimsIdentity(IdentityConstants.
TwoFactorRememberMeScheme
);
1130
auth.Setup(a => a.AuthenticateAsync(context, IdentityConstants.
TwoFactorRememberMeScheme
))
1131
.ReturnsAsync(AuthenticateResult.Success(new AuthenticationTicket(new ClaimsPrincipal(id), null, IdentityConstants.
TwoFactorRememberMeScheme
))).Verifiable();
1743
[IdentityConstants.
TwoFactorRememberMeScheme
] = CreateCookieScheme(IdentityConstants.
TwoFactorRememberMeScheme
),