38 references to TwoFactorRememberMeScheme
Microsoft.AspNetCore.Identity (16)
IdentityCookiesBuilderExtensions.cs (3)
82builder.AddCookie(IdentityConstants.TwoFactorRememberMeScheme, o => 84o.Cookie.Name = IdentityConstants.TwoFactorRememberMeScheme; 90return new OptionsBuilder<CookieAuthenticationOptions>(builder.Services, IdentityConstants.TwoFactorRememberMeScheme);
IdentityServiceCollectionExtensions.cs (2)
72.AddCookie(IdentityConstants.TwoFactorRememberMeScheme, o => 74o.Cookie.Name = IdentityConstants.TwoFactorRememberMeScheme;
SecurityStampValidator.cs (2)
160await SignInManager.Context.SignOutAsync(IdentityConstants.TwoFactorRememberMeScheme); 183/// <see cref="IdentityConstants.TwoFactorRememberMeScheme"/> cookies against the user's
SignInManager.cs (9)
732if (await _schemes.GetSchemeAsync(IdentityConstants.TwoFactorRememberMeScheme) == null) 738var result = await Context.AuthenticateAsync(IdentityConstants.TwoFactorRememberMeScheme); 753await Context.SignInAsync(IdentityConstants.TwoFactorRememberMeScheme, 756_metrics?.RememberTwoFactorClient(typeof(TUser).FullName!, IdentityConstants.TwoFactorRememberMeScheme); 760_metrics?.RememberTwoFactorClient(typeof(TUser).FullName!, IdentityConstants.TwoFactorRememberMeScheme, ex); 773await Context.SignOutAsync(IdentityConstants.TwoFactorRememberMeScheme); 774_metrics?.ForgetTwoFactorClient(typeof(TUser).FullName!, IdentityConstants.TwoFactorRememberMeScheme); 778_metrics?.ForgetTwoFactorClient(typeof(TUser).FullName!, IdentityConstants.TwoFactorRememberMeScheme, ex); 1171var rememberBrowserIdentity = new ClaimsIdentity(IdentityConstants.TwoFactorRememberMeScheme);
Microsoft.AspNetCore.Identity.InMemory.Test (2)
FunctionalTest.cs (2)
232Assert.Contains(IdentityConstants.TwoFactorRememberMeScheme + "=", setCookie); 261Assert.Contains(IdentityConstants.TwoFactorRememberMeScheme + "=", setCookie);
Microsoft.AspNetCore.Identity.Test (20)
IdentityOptionsTest.cs (1)
89Assert.Equal("c", options.Get(IdentityConstants.TwoFactorRememberMeScheme).Cookie.Name);
SecurityStampValidatorTest.cs (4)
118authService.Setup(c => c.SignOutAsync(httpContext.Object, IdentityConstants.TwoFactorRememberMeScheme, /*properties*/null)).Returns(Task.CompletedTask).Verifiable(); 213authService.Setup(c => c.SignOutAsync(httpContext.Object, IdentityConstants.TwoFactorRememberMeScheme, /*properties*/null)).Returns(Task.CompletedTask).Verifiable(); 338authService.Setup(c => c.SignOutAsync(httpContext.Object, IdentityConstants.TwoFactorRememberMeScheme, /*properties*/null)).Returns(Task.CompletedTask).Verifiable(); 349IdentityConstants.TwoFactorRememberMeScheme);
SignInManagerTest.cs (15)
261var id = new ClaimsIdentity(IdentityConstants.TwoFactorRememberMeScheme); 263auth.Setup(a => a.AuthenticateAsync(context, IdentityConstants.TwoFactorRememberMeScheme)) 264.ReturnsAsync(AuthenticateResult.Success(new AuthenticationTicket(new ClaimsPrincipal(id), null, IdentityConstants.TwoFactorRememberMeScheme))).Verifiable(); 566IdentityConstants.TwoFactorRememberMeScheme, 568&& i.Identities.First().AuthenticationType == IdentityConstants.TwoFactorRememberMeScheme), 989IdentityConstants.TwoFactorRememberMeScheme, 991&& i.Identities.First().AuthenticationType == IdentityConstants.TwoFactorRememberMeScheme), 1056IdentityConstants.TwoFactorRememberMeScheme, 1058&& i.Identities.First().AuthenticationType == IdentityConstants.TwoFactorRememberMeScheme), 1090IdentityConstants.TwoFactorRememberMeScheme, 1128var id = new ClaimsIdentity(IdentityConstants.TwoFactorRememberMeScheme); 1130auth.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),