30 references to AddCookie
Aspire.Dashboard (2)
DashboardWebApplication.cs (2)
776authentication.AddCookie(options => 824authentication.AddCookie(options =>
ClaimsTransformation (1)
Startup.cs (1)
34.AddCookie(options => options.LoginPath = "/account/login");
CookieSample (1)
Program.cs (1)
13.AddCookie(options =>
CustomPolicyProvider (1)
Startup.cs (1)
30.AddCookie(options =>
Microsoft.AspNetCore.Authentication.Test (16)
CookieTests.cs (16)
34services.AddCookie(configure); 186using var host = await CreateHostWithServices(s => s.AddAuthentication().AddCookie(o => 248s.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).AddCookie(o => 283s.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).AddCookie(o => 345services.AddAuthentication().AddCookie(o => 1302.ConfigureServices(s => s.AddAuthentication().AddCookie(o => o.LoginPath = new PathString("/page")))) 1415.ConfigureServices(services => services.AddAuthentication().AddCookie(o => o.LoginPath = new PathString("/login")))) 1437.ConfigureServices(services => services.AddAuthentication().AddCookie(o => o.LoginPath = new PathString("/login")))) 1463.ConfigureServices(services => services.AddAuthentication().AddCookie(o => o.LogoutPath = new PathString("/logout")))) 1485.ConfigureServices(services => services.AddAuthentication().AddCookie(o => o.LogoutPath = new PathString("/logout")))) 1511.ConfigureServices(services => services.AddAuthentication().AddCookie(o => o.AccessDeniedPath = new PathString("/denied")))) 1536.ConfigureServices(services => services.AddAuthentication().AddCookie(o => o.LoginPath = new PathString("/page")))) 1679.ConfigureServices(services => services.AddAuthentication().AddCookie(o => o.AccessDeniedPath = new PathString("/denied")))) 1706.ConfigureServices(services => services.AddAuthentication().AddCookie(o => 1749.ConfigureServices(services => services.AddAuthentication().AddCookie(o => 1853s.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).AddCookie(o =>
Microsoft.AspNetCore.CookiePolicy.Test (2)
CookiePolicyTests.cs (2)
383services.AddAuthentication().AddCookie(o => 434services.AddAuthentication().AddCookie(o =>
PathSchemeSelection (1)
Startup.cs (1)
28.AddCookie(options =>
SecurityWebSite (5)
Startup.cs (1)
17services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).AddCookie(options =>
StartupWithGlobalDenyAnonymousFilter.cs (1)
16.AddCookie(options =>
StartupWithGlobalDenyAnonymousFilterWithUseMvc.cs (1)
16.AddCookie(options =>
StartupWithRequireAuth.cs (1)
17services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).AddCookie(options =>
StartupWithUseMvc.cs (1)
17services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).AddCookie(options =>
SocialSample (1)
Startup.cs (1)
42.AddCookie(o => o.LoginPath = new PathString("/login"))