From fe30a0418eea86cb7b8f3b65bb878941079c6492 Mon Sep 17 00:00:00 2001 From: Hao Kung Date: Wed, 23 Jul 2014 12:36:21 -0700 Subject: [PATCH] React to Identity changes --- src/MusicStore.Spa/Startup.cs | 4 ++-- src/MusicStore/Startup.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/MusicStore.Spa/Startup.cs b/src/MusicStore.Spa/Startup.cs index 641d0c11f3..9cce579e94 100644 --- a/src/MusicStore.Spa/Startup.cs +++ b/src/MusicStore.Spa/Startup.cs @@ -44,7 +44,7 @@ namespace MusicStore.Spa // Add Identity services to the service container services.AddIdentitySqlServer() - .AddHttpSignIn(); + .AddAuthentication(); // Add application services to the service container services.AddScoped(); @@ -60,7 +60,7 @@ namespace MusicStore.Spa // Add cookie auth app.UseCookieAuthentication(new CookieAuthenticationOptions { - AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie, + AuthenticationType = ClaimsIdentityOptions.DefaultAuthenticationType, LoginPath = new PathString("/Account/Login") }); diff --git a/src/MusicStore/Startup.cs b/src/MusicStore/Startup.cs index 77aab79f54..f8c63f3360 100644 --- a/src/MusicStore/Startup.cs +++ b/src/MusicStore/Startup.cs @@ -60,7 +60,7 @@ namespace MusicStore // Add Identity services to the services container services.AddIdentitySqlServer() - .AddHttpSignIn(); + .AddAuthentication(); // Add MVC services to the services container services.AddMvc(); @@ -77,7 +77,7 @@ namespace MusicStore // Add cookie-based authentication to the request pipeline app.UseCookieAuthentication(new CookieAuthenticationOptions { - AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie, + AuthenticationType = ClaimsIdentityOptions.DefaultAuthenticationType, LoginPath = new PathString("/Account/Login"), });