33 references to TwoFactorRememberMeScheme
Microsoft.AspNetCore.Identity (12)
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 (5)
433if (await _schemes.GetSchemeAsync(IdentityConstants.TwoFactorRememberMeScheme) == null) 439var result = await Context.AuthenticateAsync(IdentityConstants.TwoFactorRememberMeScheme); 452await Context.SignInAsync(IdentityConstants.TwoFactorRememberMeScheme, 463return Context.SignOutAsync(IdentityConstants.TwoFactorRememberMeScheme); 788var 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 (19)
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 (14)
214var id = new ClaimsIdentity(IdentityConstants.TwoFactorRememberMeScheme); 216auth.Setup(a => a.AuthenticateAsync(context, IdentityConstants.TwoFactorRememberMeScheme)) 217.ReturnsAsync(AuthenticateResult.Success(new AuthenticationTicket(new ClaimsPrincipal(id), null, IdentityConstants.TwoFactorRememberMeScheme))).Verifiable(); 380IdentityConstants.TwoFactorRememberMeScheme, 382&& i.Identities.First().AuthenticationType == IdentityConstants.TwoFactorRememberMeScheme), 694IdentityConstants.TwoFactorRememberMeScheme, 696&& i.Identities.First().AuthenticationType == IdentityConstants.TwoFactorRememberMeScheme), 758IdentityConstants.TwoFactorRememberMeScheme, 760&& i.Identities.First().AuthenticationType == IdentityConstants.TwoFactorRememberMeScheme), 790var id = new ClaimsIdentity(IdentityConstants.TwoFactorRememberMeScheme); 792auth.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),