11 writes to IsPersistent
Aspire.Dashboard (1)
Model\ValidateTokenMiddleware.cs (1)
101new AuthenticationProperties { IsPersistent = true }).ConfigureAwait(false);
Identity.DefaultUI.WebSite (1)
Pages\Contoso\Login.cshtml.cs (1)
65IsPersistent = Input.RememberMe
Microsoft.AspNetCore.Authentication.Core.Test (3)
AuthenticationPropertiesTests.cs (3)
171props.IsPersistent = true; 313IsPersistent = true, 369IsPersistent = true,
Microsoft.AspNetCore.Identity (3)
SignInManager.cs (3)
232=> SignInAsync(user, new AuthenticationProperties { IsPersistent = isPersistent }, authenticationMethod); 261=> SignInWithClaimsAsync(user, new AuthenticationProperties { IsPersistent = isPersistent }, additionalClaims); 755new AuthenticationProperties { IsPersistent = true });
Microsoft.AspNetCore.Identity.Test (3)
SecurityStampValidatorTest.cs (2)
81var properties = new AuthenticationProperties { IssuedUtc = DateTimeOffset.UtcNow.AddSeconds(-1), IsPersistent = isPersistent }; 348new AuthenticationProperties { IsPersistent = true },
SignInManagerTest.cs (1)
830var properties = new AuthenticationProperties { IsPersistent = isPersistent };
14 references to IsPersistent
Microsoft.AspNetCore.Authentication.Cookies (2)
CookieAuthenticationHandler.cs (2)
275if (properties.IsPersistent && _refreshExpiresUtc.HasValue) 329if (signInContext.Properties.IsPersistent)
Microsoft.AspNetCore.Authentication.Core.Test (5)
AuthenticationPropertiesTests.cs (5)
169Assert.False(props.IsPersistent); 172Assert.True(props.IsPersistent); 176Assert.False(props.IsPersistent); 335Assert.Equal(props.IsPersistent, deserialized.IsPersistent);
Microsoft.AspNetCore.Identity (4)
SignInManager.cs (4)
191return (false, auth.Properties?.IsPersistent); 199return (false, auth.Properties?.IsPersistent); 220return (true, auth.Properties?.IsPersistent ?? false); 288_metrics?.SignInUserPrincipal(typeof(TUser).FullName!, AuthenticationScheme, authenticationProperties.IsPersistent);
Microsoft.AspNetCore.Identity.Test (3)
SignInManagerTest.cs (3)
843It.Is<AuthenticationProperties>(properties => properties.IsPersistent == isPersistent), 1059It.Is<AuthenticationProperties>(v => v.IsPersistent == true))).Returns(Task.FromResult(0)).Verifiable(); 1370It.Is<AuthenticationProperties>(v => isPersistent == null || v.IsPersistent == isPersistent))).Returns(Task.FromResult(0)).Verifiable();