34 references to AddCookie
Aspire.Dashboard (2)
DashboardWebApplication.cs (2)
758
authentication.
AddCookie
(options =>
795
authentication.
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)
34
services.
AddCookie
(configure);
186
using var host = await CreateHostWithServices(s => s.AddAuthentication().
AddCookie
(o =>
248
s.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).
AddCookie
(o =>
283
s.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).
AddCookie
(o =>
345
services.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 =>
1853
s.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).
AddCookie
(o =>
Microsoft.AspNetCore.CookiePolicy.Test (2)
CookiePolicyTests.cs (2)
383
services.AddAuthentication().
AddCookie
(o =>
434
services.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)
14
services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).
AddCookie
(options => options.LoginPath = "/Login");
SecurityWebSite (5)
Startup.cs (1)
17
services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).
AddCookie
(options =>
StartupWithGlobalDenyAnonymousFilter.cs (1)
16
.
AddCookie
(options =>
StartupWithGlobalDenyAnonymousFilterWithUseMvc.cs (1)
16
.
AddCookie
(options =>
StartupWithRequireAuth.cs (1)
17
services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).
AddCookie
(options =>
StartupWithUseMvc.cs (1)
17
services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).
AddCookie
(options =>
SocialSample (1)
Startup.cs (1)
42
.
AddCookie
(o => o.LoginPath = new PathString("/login"))