GalaxyStorm.Data.Models.ApplicationUser.GenerateUserIdentityAsync C# (CSharp) Méthode

GenerateUserIdentityAsync() public méthode

public GenerateUserIdentityAsync ( UserManager manager ) : Task
manager UserManager
Résultat Task
        public async Task<ClaimsIdentity> GenerateUserIdentityAsync(UserManager<ApplicationUser> 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;
        }
    }