77 references to CookieSecurePolicy
Microsoft.AspNetCore.Antiforgery (4)
Microsoft.AspNetCore.Antiforgery.Test (13)
DefaultAntiforgeryTokenStoreTest.cs (7)
343[InlineData(false, CookieSecurePolicy.SameAsRequest, null)]
344[InlineData(true, CookieSecurePolicy.SameAsRequest, true)]
345[InlineData(false, CookieSecurePolicy.Always, true)]
346[InlineData(true, CookieSecurePolicy.Always, true)]
347[InlineData(false, CookieSecurePolicy.None, null)]
348[InlineData(true, CookieSecurePolicy.None, null)]
351CookieSecurePolicy policy,
Microsoft.AspNetCore.Authentication (2)
Microsoft.AspNetCore.Authentication.Cookies (2)
Microsoft.AspNetCore.Authentication.OpenIdConnect (3)
Microsoft.AspNetCore.Authentication.Test (11)
CookieTests.cs (9)
323[InlineData(CookieSecurePolicy.Always, "http://example.com/testpath", true)]
324[InlineData(CookieSecurePolicy.Always, "https://example.com/testpath", true)]
325[InlineData(CookieSecurePolicy.None, "http://example.com/testpath", false)]
326[InlineData(CookieSecurePolicy.None, "https://example.com/testpath", false)]
327[InlineData(CookieSecurePolicy.SameAsRequest, "http://example.com/testpath", false)]
328[InlineData(CookieSecurePolicy.SameAsRequest, "https://example.com/testpath", true)]
330CookieSecurePolicy cookieSecurePolicy,
363o.Cookie.SecurePolicy = CookieSecurePolicy.Always;
387o.Cookie.SecurePolicy = CookieSecurePolicy.None;
Microsoft.AspNetCore.Authentication.Twitter (2)
Microsoft.AspNetCore.CookiePolicy (6)
Microsoft.AspNetCore.CookiePolicy.Test (7)
Microsoft.AspNetCore.Http.Abstractions (3)
Microsoft.AspNetCore.Http.Abstractions.Tests (7)
CookieBuilderTests.cs (7)
9[InlineData(CookieSecurePolicy.Always, false, true)]
10[InlineData(CookieSecurePolicy.Always, true, true)]
11[InlineData(CookieSecurePolicy.SameAsRequest, true, true)]
12[InlineData(CookieSecurePolicy.SameAsRequest, false, false)]
13[InlineData(CookieSecurePolicy.None, true, false)]
14[InlineData(CookieSecurePolicy.None, false, false)]
15public void ConfiguresSecurePolicy(CookieSecurePolicy policy, bool requestIsHttps, bool secure)
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (7)
CookieTempDataProviderTest.cs (7)
141[InlineData(true, CookieSecurePolicy.None, false)]
142[InlineData(false, CookieSecurePolicy.None, false)]
143[InlineData(true, CookieSecurePolicy.Always, true)]
144[InlineData(false, CookieSecurePolicy.Always, true)]
145[InlineData(true, CookieSecurePolicy.SameAsRequest, true)]
146[InlineData(false, CookieSecurePolicy.SameAsRequest, false)]
149CookieSecurePolicy cookieSecurePolicy,
Microsoft.AspNetCore.Session (1)
Microsoft.AspNetCore.Session.Tests (7)
SessionTests.cs (7)
101[InlineData(CookieSecurePolicy.Always, "http://example.com/testpath", true)]
102[InlineData(CookieSecurePolicy.Always, "https://example.com/testpath", true)]
103[InlineData(CookieSecurePolicy.None, "http://example.com/testpath", false)]
104[InlineData(CookieSecurePolicy.None, "https://example.com/testpath", false)]
105[InlineData(CookieSecurePolicy.SameAsRequest, "http://example.com/testpath", false)]
106[InlineData(CookieSecurePolicy.SameAsRequest, "https://example.com/testpath", true)]
108CookieSecurePolicy cookieSecurePolicy,