FrannHammer.Models.ApplicationUser.GenerateUserIdentityAsync C# (CSharp) 메소드

GenerateUserIdentityAsync() 공개 메소드

public GenerateUserIdentityAsync ( UserManager manager, string authenticationType ) : Task
manager UserManager
authenticationType string
리턴 Task
        public async Task<ClaimsIdentity> GenerateUserIdentityAsync(UserManager<ApplicationUser> manager, string authenticationType)
        {
            // Note the authenticationType must match the one defined in CookieAuthenticationOptions.AuthenticationType
            var userIdentity = await manager.CreateIdentityAsync(this, authenticationType);
            // Add custom user claims here
            return userIdentity;
        }
    }