This repository was archived by the owner on Nov 20, 2018. It is now read-only.
File tree 1 file changed +34
-0
lines changed
src/Microsoft.AspNetCore.Http.Abstractions
1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ // Copyright (c) .NET Foundation. All rights reserved.
2
+ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
3
+
4
+ namespace Microsoft . AspNetCore . Http
5
+ {
6
+ /// <summary>
7
+ /// Determines how cookie security properties are set.
8
+ /// </summary>
9
+ public enum CookieSecurePolicy
10
+ {
11
+ /// <summary>
12
+ /// If the URI that provides the cookie is HTTPS, then the cookie will only be returned to the server on
13
+ /// subsequent HTTPS requests. Otherwise if the URI that provides the cookie is HTTP, then the cookie will
14
+ /// be returned to the server on all HTTP and HTTPS requests. This is the default value because it ensures
15
+ /// HTTPS for all authenticated requests on deployed servers, and also supports HTTP for localhost development
16
+ /// and for servers that do not have HTTPS support.
17
+ /// </summary>
18
+ SameAsRequest ,
19
+
20
+ /// <summary>
21
+ /// Secure is always marked true. Use this value when your login page and all subsequent pages
22
+ /// requiring the authenticated identity are HTTPS. Local development will also need to be done with HTTPS urls.
23
+ /// </summary>
24
+ Always ,
25
+
26
+ /// <summary>
27
+ /// Secure is never marked true. Use this value when your login page is HTTPS, but other pages
28
+ /// on the site which are HTTP also require authentication information. This setting is not recommended because
29
+ /// the authentication information provided with an HTTP request may be observed and used by other computers
30
+ /// on your local network or wireless connection.
31
+ /// </summary>
32
+ Never ,
33
+ }
34
+ }
You can’t perform that action at this time.
0 commit comments