34 references to AddCookie
Aspire.Dashboard (2)
DashboardWebApplication.cs (2)
737authentication.AddCookie(options => 774authentication.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)
33services.AddCookie(configure); 161using var host = await CreateHostWithServices(s => s.AddAuthentication().AddCookie(o => 223s.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).AddCookie(o => 258s.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).AddCookie(o => 320services.AddAuthentication().AddCookie(o => 1277.ConfigureServices(s => s.AddAuthentication().AddCookie(o => o.LoginPath = new PathString("/page")))) 1390.ConfigureServices(services => services.AddAuthentication().AddCookie(o => o.LoginPath = new PathString("/login")))) 1412.ConfigureServices(services => services.AddAuthentication().AddCookie(o => o.LoginPath = new PathString("/login")))) 1438.ConfigureServices(services => services.AddAuthentication().AddCookie(o => o.LogoutPath = new PathString("/logout")))) 1460.ConfigureServices(services => services.AddAuthentication().AddCookie(o => o.LogoutPath = new PathString("/logout")))) 1486.ConfigureServices(services => services.AddAuthentication().AddCookie(o => o.AccessDeniedPath = new PathString("/denied")))) 1511.ConfigureServices(services => services.AddAuthentication().AddCookie(o => o.LoginPath = new PathString("/page")))) 1654.ConfigureServices(services => services.AddAuthentication().AddCookie(o => o.AccessDeniedPath = new PathString("/denied")))) 1681.ConfigureServices(services => services.AddAuthentication().AddCookie(o => 1724.ConfigureServices(services => services.AddAuthentication().AddCookie(o => 1828s.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 =>
RazorPagesWebSite (4)
Startup.cs (1)
13.AddCookie(options => options.LoginPath = "/Login");
StartupWithBasePath.cs (1)
21.AddCookie(options => options.LoginPath = "/Login");
StartupWithClientValidationDisabled.cs (1)
14.AddCookie(options => options.LoginPath = "/Login");
StartupWithoutEndpointRouting.cs (1)
14services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).AddCookie(options => options.LoginPath = "/Login");
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"))