/// <summary> /// Initializes a new instance of the <see cref="OAuthPrincipal"/> class. /// </summary> /// <param name="identity">The identity.</param> /// <param name="roles">The roles this user belongs to.</param> internal OAuthPrincipal(OAuthIdentity identity, string[] roles) { this.Identity = identity; this.roles = roles; }