C# Class WorldDomination.Security.ClaimsExtensions

Show file Open project: PureKrome/WorldDomination.Security

Public Methods

Method Description
WithDisplayName ( this claimsPrincipal ) : string

The Display Name claim, if one exists.

WithPictureUri ( this claimsPrincipal ) : string

The Avatar/Profile picture Uri claim, if one exists.

WithUserId ( this claimsPrincipal ) : string

The UserId claim, if one exists.

Method Details

WithDisplayName() public static method

The Display Name claim, if one exists.
public static WithDisplayName ( this claimsPrincipal ) : string
claimsPrincipal this ClaimsPrincipal: the claims principal.
return string

WithPictureUri() public static method

The Avatar/Profile picture Uri claim, if one exists.
public static WithPictureUri ( this claimsPrincipal ) : string
claimsPrincipal this ClaimsPrincipal: the claims principal.
return string

WithUserId() public static method

The UserId claim, if one exists.
public static WithUserId ( this claimsPrincipal ) : string
claimsPrincipal this ClaimsPrincipal: the claims principal.
return string