Example #1
0
 /// <summary>
 /// Create an instance of the options initialized with the default values
 /// </summary>
 public CookieAuthenticationOptions()
 {
     AuthenticationType = CookieAuthenticationDefaults.AuthenticationType;
     ReturnUrlParameter = CookieAuthenticationDefaults.ReturnUrlParameter;
     ExpireTimeSpan     = TimeSpan.FromDays(14);
     SlidingExpiration  = true;
     CookieHttpOnly     = true;
     CookieSecure       = CookieSecureOption.SameAsRequest;
     SystemClock        = new SystemClock();
     Notifications      = new CookieAuthenticationNotifications();
 }
 /// <summary>
 /// Create an instance of the options initialized with the default values
 /// </summary>
 public CookieAuthenticationOptions()
     : base(CookieAuthenticationDefaults.AuthenticationType)
 {
     ReturnUrlParameter = CookieAuthenticationDefaults.ReturnUrlParameter;
     CookiePath = "/";
     ExpireTimeSpan = TimeSpan.FromDays(14);
     SlidingExpiration = true;
     CookieHttpOnly = true;
     CookieSecure = CookieSecureOption.SameAsRequest;
     SystemClock = new SystemClock();
     Notifications = new CookieAuthenticationNotifications();
 }