32 references to AddCookie
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)
32services.AddCookie(configure); 129using var host = await CreateHostWithServices(s => s.AddAuthentication().AddCookie(o => 191s.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).AddCookie(o => 226s.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).AddCookie(o => 288services.AddAuthentication().AddCookie(o => 1245.ConfigureServices(s => s.AddAuthentication().AddCookie(o => o.LoginPath = new PathString("/page")))) 1358.ConfigureServices(services => services.AddAuthentication().AddCookie(o => o.LoginPath = new PathString("/login")))) 1380.ConfigureServices(services => services.AddAuthentication().AddCookie(o => o.LoginPath = new PathString("/login")))) 1406.ConfigureServices(services => services.AddAuthentication().AddCookie(o => o.LogoutPath = new PathString("/logout")))) 1428.ConfigureServices(services => services.AddAuthentication().AddCookie(o => o.LogoutPath = new PathString("/logout")))) 1454.ConfigureServices(services => services.AddAuthentication().AddCookie(o => o.AccessDeniedPath = new PathString("/denied")))) 1479.ConfigureServices(services => services.AddAuthentication().AddCookie(o => o.LoginPath = new PathString("/page")))) 1622.ConfigureServices(services => services.AddAuthentication().AddCookie(o => o.AccessDeniedPath = new PathString("/denied")))) 1649.ConfigureServices(services => services.AddAuthentication().AddCookie(o => 1692.ConfigureServices(services => services.AddAuthentication().AddCookie(o => 1796s.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"))