ServiceUser Class

Definition

The ServiceUser class is an IPrincipal implementation which provides information about how the user is authenticated using any of the supported authentication mechanisms as well as the AuthorizationLevel at which the user is authenticated.

public class ServiceUser : System.Security.Claims.ClaimsPrincipal
type ServiceUser = class
    inherit ClaimsPrincipal
Public Class ServiceUser
Inherits ClaimsPrincipal
Inheritance
ServiceUser

Constructors

ServiceUser()

Initializes a new instance of the ServiceUser class.

ServiceUser(IEnumerable<ClaimsIdentity>)

Initializes a new instance of the ServiceUser class from the specified identities.

ServiceUser(IIdentity)

Initializes a new instance of the ServiceUser class from the specified identity.

Properties

Id

Gets or sets the user ID

Level

Gets or sets the AuthorizationLevel this user has been granted.

Methods

GetIdentitiesAsync()

Gets the collection of provider specific identities for this user.

Applies to