React to HttpRequest.IsSecure renaming

This commit is contained in:
Levi B 2015-02-17 11:08:12 -08:00
parent 5094b85ac9
commit a15cb4ffe5
4 changed files with 7 additions and 7 deletions

View File

@ -150,7 +150,7 @@ namespace Microsoft.AspNet.Security.Cookies
}; };
if (Options.CookieSecure == CookieSecureOption.SameAsRequest) if (Options.CookieSecure == CookieSecureOption.SameAsRequest)
{ {
cookieOptions.Secure = Request.IsSecure; cookieOptions.Secure = Request.IsHttps;
} }
else else
{ {

View File

@ -472,7 +472,7 @@ namespace Microsoft.AspNet.Security.OpenIdConnect
new CookieOptions new CookieOptions
{ {
HttpOnly = true, HttpOnly = true,
Secure = Request.IsSecure Secure = Request.IsHttps
}); });
} }
@ -502,7 +502,7 @@ namespace Microsoft.AspNet.Security.OpenIdConnect
var cookieOptions = new CookieOptions var cookieOptions = new CookieOptions
{ {
HttpOnly = true, HttpOnly = true,
Secure = Request.IsSecure Secure = Request.IsHttps
}; };
Response.Cookies.Delete(nonceKey, cookieOptions); Response.Cookies.Delete(nonceKey, cookieOptions);

View File

@ -108,7 +108,7 @@ namespace Microsoft.AspNet.Security.Twitter
var cookieOptions = new CookieOptions var cookieOptions = new CookieOptions
{ {
HttpOnly = true, HttpOnly = true,
Secure = Request.IsSecure Secure = Request.IsHttps
}; };
Response.Cookies.Delete(StateCookie, cookieOptions); Response.Cookies.Delete(StateCookie, cookieOptions);
@ -167,7 +167,7 @@ namespace Microsoft.AspNet.Security.Twitter
var cookieOptions = new CookieOptions var cookieOptions = new CookieOptions
{ {
HttpOnly = true, HttpOnly = true,
Secure = Request.IsSecure Secure = Request.IsHttps
}; };
Response.Cookies.Append(StateCookie, Options.StateDataFormat.Protect(requestToken), cookieOptions); Response.Cookies.Append(StateCookie, Options.StateDataFormat.Protect(requestToken), cookieOptions);

View File

@ -393,7 +393,7 @@ namespace Microsoft.AspNet.Security.Infrastructure
var cookieOptions = new CookieOptions var cookieOptions = new CookieOptions
{ {
HttpOnly = true, HttpOnly = true,
Secure = Request.IsSecure Secure = Request.IsHttps
}; };
properties.Dictionary[correlationKey] = correlationId; properties.Dictionary[correlationKey] = correlationId;
@ -415,7 +415,7 @@ namespace Microsoft.AspNet.Security.Infrastructure
var cookieOptions = new CookieOptions var cookieOptions = new CookieOptions
{ {
HttpOnly = true, HttpOnly = true,
Secure = Request.IsSecure Secure = Request.IsHttps
}; };
Response.Cookies.Delete(correlationKey, cookieOptions); Response.Cookies.Delete(correlationKey, cookieOptions);