Table of Contents

Class AbstractSamlClaimFactory

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

Creates claims from SAML assertions and vice versa.

public abstract class AbstractSamlClaimFactory : ISamlClaimFactory
Inheritance
AbstractSamlClaimFactory
Implements
Derived
Inherited Members

Methods

CreateClaims(string, string, IList<SamlAttribute>)

Creates claims from the SAML user ID and SAML attributes.

public virtual 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.

public virtual 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.

public virtual string CreateSamlUserID(string partnerName, ClaimsPrincipal claimsPrincipal)

Parameters

partnerName string

The partner provider name.

claimsPrincipal ClaimsPrincipal

The claims principal.

Returns

string

The SAML user ID.