Esempio n. 1
0
        public static CustomUserManager Create(IdentityFactoryOptions <CustomUserManager> options,
                                               IOwinContext context)
        {
            var manager = new CustomUserManager(new InMemoryUserStore());

            return(manager);
        }
Esempio n. 2
0
        public async Task <ClaimsIdentity> GenerateUserIdentityAsync(CustomUserManager manager)
        {
            // Note the authenticationType must match the one defined in CookieAuthenticationOptions.AuthenticationType
            var userIdentity = await manager.CreateIdentityAsync(this, DefaultAuthenticationTypes.ApplicationCookie);

            // Add custom user claims here
            return(userIdentity);
        }
Esempio n. 3
0
 public CustomSignInManager(CustomUserManager userManager, IAuthenticationManager authenticationManager)
     : base(userManager, authenticationManager)
 {
 }