C# Class SampleRP.Library.ClaimHelper

Datei anzeigen Open project: southworks/protocol-bridge-claims-provider

Public Methods

Method Description
GetClaimFromIdentity ( IIdentity identity, string claimType ) : Claim
GetClaimsFromPrincipal ( IPrincipal principal, string claimType ) : Claim
GetCurrentUserClaim ( string claimType ) : Claim

Method Details

GetClaimFromIdentity() public static method

public static GetClaimFromIdentity ( IIdentity identity, string claimType ) : Claim
identity IIdentity
claimType string
return Claim

GetClaimsFromPrincipal() public static method

public static GetClaimsFromPrincipal ( IPrincipal principal, string claimType ) : Claim
principal IPrincipal
claimType string
return Claim

GetCurrentUserClaim() public static method

public static GetCurrentUserClaim ( string claimType ) : Claim
claimType string
return Claim