コード例 #1
0
        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);
        }
コード例 #2
0
 public CustomUserStore(CustomUserManager man)
 {
     obj = man;
 }