Cookies now defaults to AutomaticAuthenticate true again

This commit is contained in:
Hao Kung 2015-11-13 11:27:39 -08:00
parent b05f8771ae
commit de107ffe61
1 changed files with 1 additions and 0 deletions

View File

@ -23,6 +23,7 @@ namespace Microsoft.AspNet.Authentication.Cookies
public CookieAuthenticationOptions()
{
AuthenticationScheme = CookieAuthenticationDefaults.AuthenticationScheme;
AutomaticAuthenticate = true;
ReturnUrlParameter = CookieAuthenticationDefaults.ReturnUrlParameter;
ExpireTimeSpan = TimeSpan.FromDays(14);
SlidingExpiration = true;