From b0c60907745006ca100127d9a4896a697b6bad77 Mon Sep 17 00:00:00 2001 From: Hao Kung Date: Mon, 16 Mar 2015 15:15:44 -0700 Subject: [PATCH] Identity ApplicationCookie Automatic by default React to cookie's not being automatic by default --- .../IdentityServiceCollectionExtensions.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Microsoft.AspNet.Identity/IdentityServiceCollectionExtensions.cs b/src/Microsoft.AspNet.Identity/IdentityServiceCollectionExtensions.cs index 9a09176614..31acc8bc54 100644 --- a/src/Microsoft.AspNet.Identity/IdentityServiceCollectionExtensions.cs +++ b/src/Microsoft.AspNet.Identity/IdentityServiceCollectionExtensions.cs @@ -80,6 +80,7 @@ namespace Microsoft.Framework.DependencyInjection services.ConfigureIdentityApplicationCookie(options => { options.AuthenticationScheme = IdentityOptions.ApplicationCookieAuthenticationScheme; + options.AutomaticAuthentication = true; options.LoginPath = new PathString("/Account/Login"); options.Notifications = new CookieAuthenticationNotifications {