public static CustomUserManager Create(IdentityFactoryOptions <CustomUserManager> options, IOwinContext context) { var manager = new CustomUserManager(new CustomUserStore <ApplicationUser>(context.Get <CustomUserManager>())); // Configure validation logic for usernames // // // Configure validation logic for usernames var dataProtectionProvider = options.DataProtectionProvider; if (dataProtectionProvider != null) { manager.UserTokenProvider = new DataProtectorTokenProvider <ApplicationUser>(dataProtectionProvider.Create("ASP.NET Identity")); } return(manager); }
public CustomUserStore(CustomUserManager man) { obj = man; }