C# Class TokenAuthentication.Infrastructure.Authentication.PrincipalExtensions

显示文件 Open project: bytefish/NancyOwinExample

Public Methods

Method Description
GetClaimValue ( this principal, string type ) : string
HasClaim ( this principal, string type ) : bool

Method Details

GetClaimValue() public static method

public static GetClaimValue ( this principal, string type ) : string
principal this
type string
return string

HasClaim() public static method

public static HasClaim ( this principal, string type ) : bool
principal this
type string
return bool