Cleanup identity comments

This commit is contained in:
Hao Kung 2014-05-12 10:14:55 -07:00
parent 909941fa51
commit 3fcfaeb4e0
1 changed files with 0 additions and 10 deletions

View File

@ -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<DbContext, ApplicationDbContext>();
//Bug: https://github.com/aspnet/Identity/issues/50
services.AddIdentity<ApplicationUser, IdentityRole>(s =>
{
//s.UseDbContext(() => context);
//s.UseUserStore(() => new UserStore(context));
s.AddEntity();
s.AddUserManager<ApplicationUserManager>();
s.AddRoleManager<ApplicationRoleManager>();
@ -80,12 +76,6 @@ public class Startup
{
AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie,
LoginPath = new PathString("/Account/Login"),
Notifications = new CookieAuthenticationNotifications
{
//OnValidateIdentity = SecurityStampValidator.OnValidateIdentity<ApplicationUserManager, ApplicationUser>(
// validateInterval: TimeSpan.FromMinutes(30),
// regenerateIdentity: (manager, user) => user.GenerateUserIdentityAsync(manager))
}
});
app.UseMvc(routes =>