Table of Contents

Class SamlClaimFactory

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

Creates claims from SAML assertions and vice versa.

public class SamlClaimFactory : AbstractSamlClaimFactory, ISamlClaimFactory
Inheritance
SamlClaimFactory
Implements
Inherited Members

Methods

CreateClaims(string, string, IList<SamlAttribute>)

Creates claims from the SAML user ID and SAML attributes.

public override 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 override 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 override string CreateSamlUserID(string partnerName, ClaimsPrincipal claimsPrincipal)

Parameters

partnerName string

The partner provider name.

claimsPrincipal ClaimsPrincipal

The claims principal.

Returns

string

The SAML user ID.