57 references to Cookie
Aspire.Dashboard (2)
DashboardWebApplication.cs (2)
710options.Cookie.Name = DashboardAuthCookieName; 758options.Cookie.Name = DashboardAuthCookieName;
Microsoft.AspNetCore.Authentication.Cookies (8)
CookieAuthenticationHandler.cs (5)
152var cookie = Options.CookieManager.GetRequestCookie(Context, Options.Cookie.Name!); 231var cookieOptions = Options.Cookie.Build(Context); 282Options.Cookie.Name!, 360Options.Cookie.Name!, 406Options.Cookie.Name!,
CookieExtensions.cs (1)
80builder.Services.AddOptions<CookieAuthenticationOptions>(authenticationScheme).Validate(o => o.Cookie.Expiration == null, "Cookie.Expiration is ignored, use ExpireTimeSpan instead.");
PostConfigureCookieAuthenticationOptions.cs (2)
36if (string.IsNullOrEmpty(options.Cookie.Name)) 38options.Cookie.Name = CookieAuthenticationDefaults.CookiePrefix + Uri.EscapeDataString(name);
Microsoft.AspNetCore.Authentication.Test (27)
CookieTests.cs (27)
132o.Cookie.Name = "TestCookie"; 290o.Cookie.Expiration = TimeSpan.FromDays(10); 302o.Cookie.Name = "TestCookie"; 315o.Cookie.Name = "TestCookie"; 337o.Cookie.Name = "TestCookie"; 338o.Cookie.SecurePolicy = cookieSecurePolicy; 360o.Cookie.Name = "TestCookie"; 361o.Cookie.Path = "/foo"; 362o.Cookie.Domain = "another.com"; 363o.Cookie.SecurePolicy = CookieSecurePolicy.Always; 364o.Cookie.SameSite = SameSiteMode.None; 365o.Cookie.HttpOnly = true; 366o.Cookie.Extensions.Add("extension0"); 367o.Cookie.Extensions.Add("extension1=value1"); 386o.Cookie.Name = "SecondCookie"; 387o.Cookie.SecurePolicy = CookieSecurePolicy.None; 388o.Cookie.SameSite = SameSiteMode.Strict; 389o.Cookie.HttpOnly = false; 1305o => o.Cookie.Name = "One"); 1333o => o.Cookie.Name = "One"); 1503o.Cookie.Name = "TestCookie"; 1526o.Cookie.Name = "TestCookie"; 1548o.Cookie.Name = "TestCookie"; 1571o.Cookie.Name = "TestCookie"; 1593o.Cookie.Name = "TestCookie"; 1652o.Cookie.Name = "Cookie"; 1675o.Cookie.Name = "Cookie";
Microsoft.AspNetCore.CookiePolicy.Test (6)
CookiePolicyTests.cs (6)
385o.Cookie.Name = "TestCookie"; 386o.Cookie.HttpOnly = false; 387o.Cookie.SecurePolicy = CookieSecurePolicy.None; 436o.Cookie.Name = "TestCookie"; 437o.Cookie.HttpOnly = false; 438o.Cookie.SecurePolicy = CookieSecurePolicy.None;
Microsoft.AspNetCore.Identity (6)
IdentityCookiesBuilderExtensions.cs (3)
69o.Cookie.Name = IdentityConstants.ExternalScheme; 84o.Cookie.Name = IdentityConstants.TwoFactorRememberMeScheme; 102o.Cookie.Name = IdentityConstants.TwoFactorUserIdScheme;
IdentityServiceCollectionExtensions.cs (3)
69o.Cookie.Name = IdentityConstants.ExternalScheme; 74o.Cookie.Name = IdentityConstants.TwoFactorRememberMeScheme; 82o.Cookie.Name = IdentityConstants.TwoFactorUserIdScheme;
Microsoft.AspNetCore.Identity.Test (8)
IdentityOptionsTest.cs (8)
77o.ApplicationCookie.Configure(a => a.Cookie.Name = "a"); 78o.ExternalCookie.Configure(a => a.Cookie.Name = "b"); 79o.TwoFactorRememberMeCookie.Configure(a => a.Cookie.Name = "c"); 80o.TwoFactorUserIdCookie.Configure(a => a.Cookie.Name = "d"); 87Assert.Equal("a", options.Get(IdentityConstants.ApplicationScheme).Cookie.Name); 88Assert.Equal("b", options.Get(IdentityConstants.ExternalScheme).Cookie.Name); 89Assert.Equal("c", options.Get(IdentityConstants.TwoFactorRememberMeScheme).Cookie.Name); 90Assert.Equal("d", options.Get(IdentityConstants.TwoFactorUserIdScheme).Cookie.Name);