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"), });