public async Task <ClaimsIdentity> GenerateUserIdentityAsync(InspurUserManager <InspurUser> 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);
        }
 /// <summary>
 /// Called to generate the ClaimsIdentity for the user, override to add additional claims before SignIn
 /// </summary>
 /// <param name="user"></param>
 /// <returns></returns>
 public virtual Task <ClaimsIdentity> CreateUserIdentityAsync(TUser user)
 {
     return(InspurUserManager.CreateIdentityAsync(user, AuthenticationType));
 }