GenericPrincipal public class GenericPrincipal : ClaimsPrincipal Represents a generic principal. Documentation public GenericPrincipal(IIdentity identity, string[] roles) Initializes a new instance of the GenericPrincipal class from a user identity and an array of role names to which the user represented by that identity belongs.