Table of Contents

Interface ISamlClaimFactory

Namespace
ComponentSpace.Saml2.Claims
Assembly
ComponentSpace.Saml2.dll

Creates claims from SAML assertions and vice versa.

public interface ISamlClaimFactory

Methods

CreateClaims(string, string, IList<SamlAttribute>)

Creates claims from the SAML user ID and SAML attributes.

IList<Claim> CreateClaims(string partnerName, string userID, IList<SamlAttribute> attributes)

Parameters

partnerName string

The partner provider name.

userID string

The SAML user ID.

attributes IList<SamlAttribute>

The SAML attributes.

Returns

IList<Claim>

The claims.

CreateSamlAttributes(string, ClaimsPrincipal)

Creates the SAML attributes from claims.

IList<SamlAttribute> CreateSamlAttributes(string partnerName, ClaimsPrincipal claimsPrincipal)

Parameters

partnerName string

The partner provider name.

claimsPrincipal ClaimsPrincipal

The claims principal.

Returns

IList<SamlAttribute>

The SAML attributes.

CreateSamlUserID(string, ClaimsPrincipal)

Creates the SAML user ID from claims.

string CreateSamlUserID(string partnerName, ClaimsPrincipal claimsPrincipal)

Parameters

partnerName string

The partner provider name.

claimsPrincipal ClaimsPrincipal

The claims principal.

Returns

string

The SAML user ID.