diff --git a/src/MusicStore/Startup.cs b/src/MusicStore/Startup.cs index 5692e2dcad..e4c7bd1d61 100644 --- a/src/MusicStore/Startup.cs +++ b/src/MusicStore/Startup.cs @@ -50,16 +50,12 @@ public class Startup /* * Add all Identity related services to IoC. - * Using an InMemory store to store membership data until SQL server is available. - * Users created will be lost on application shutdown. */ services.AddTransient(); //Bug: https://github.com/aspnet/Identity/issues/50 services.AddIdentity(s => { - //s.UseDbContext(() => context); - //s.UseUserStore(() => new UserStore(context)); s.AddEntity(); s.AddUserManager(); s.AddRoleManager(); @@ -80,12 +76,6 @@ public class Startup { AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie, LoginPath = new PathString("/Account/Login"), - Notifications = new CookieAuthenticationNotifications - { - //OnValidateIdentity = SecurityStampValidator.OnValidateIdentity( - // validateInterval: TimeSpan.FromMinutes(30), - // regenerateIdentity: (manager, user) => user.GenerateUserIdentityAsync(manager)) - } }); app.UseMvc(routes =>