19 references to AddCookie
Cookies (1)
Startup.cs (1)
36
.
AddCookie
(CookieScheme, options =>
Microsoft.AspNetCore.Authentication.Cookies (2)
CookieExtensions.cs (2)
38
=> builder.
AddCookie
(authenticationScheme, configureOptions: null!);
51
=> builder.
AddCookie
(CookieAuthenticationDefaults.AuthenticationScheme, configureOptions);
Microsoft.AspNetCore.Authentication.Test (8)
CookieTests.cs (2)
256
using var host = await CreateHostWithServices(s => s.AddAuthentication(schemeName).
AddCookie
(schemeName, o =>
1673
.ConfigureServices(services => services.AddAuthentication().
AddCookie
("Cookies", o =>
FacebookTests.cs (3)
88
.
AddCookie
("External", o => { })
220
.
AddCookie
("External", o => { })
253
.
AddCookie
("External", o => { })
GoogleTests.cs (1)
1230
.
AddCookie
(TestExtensions.CookieAuthenticationScheme, o => o.ForwardChallenge = GoogleDefaults.AuthenticationScheme)
MicrosoftAccountTests.cs (1)
417
.
AddCookie
(TestExtensions.CookieAuthenticationScheme, o => { })
TwitterTests.cs (1)
583
.
AddCookie
(TestExtensions.CookieAuthenticationScheme, o => o.ForwardChallenge = TwitterDefaults.AuthenticationScheme)
Microsoft.AspNetCore.Identity (8)
IdentityCookiesBuilderExtensions.cs (4)
49
builder.
AddCookie
(IdentityConstants.ApplicationScheme, o =>
67
builder.
AddCookie
(IdentityConstants.ExternalScheme, o =>
82
builder.
AddCookie
(IdentityConstants.TwoFactorRememberMeScheme, o =>
100
builder.
AddCookie
(IdentityConstants.TwoFactorUserIdScheme, o =>
IdentityServiceCollectionExtensions.cs (4)
59
.
AddCookie
(IdentityConstants.ApplicationScheme, o =>
67
.
AddCookie
(IdentityConstants.ExternalScheme, o =>
72
.
AddCookie
(IdentityConstants.TwoFactorRememberMeScheme, o =>
80
.
AddCookie
(IdentityConstants.TwoFactorUserIdScheme, o =>