Show / Hide Table of Contents

Class SamlClaimFactory

Creates claims from SAML assertions and vice versa.

Inheritance
object
AbstractSamlClaimFactory
SamlClaimFactory
Implements
ISamlClaimFactory
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: ComponentSpace.Saml2.Claims
Assembly: ComponentSpace.Saml2.dll
Syntax
public class SamlClaimFactory : AbstractSamlClaimFactory, ISamlClaimFactory

Methods

CreateClaims(string, string, IList<SamlAttribute>)

Creates claims from the SAML user ID and SAML attributes.

Declaration
public override IList<Claim> CreateClaims(string partnerName, string userID, IList<SamlAttribute> attributes)
Parameters
Type Name Description
string partnerName

The partner provider name.

string userID

The SAML user ID.

IList<SamlAttribute> attributes

The SAML attributes.

Returns
Type Description
IList<Claim>

The claims.

Overrides
AbstractSamlClaimFactory.CreateClaims(string, string, IList<SamlAttribute>)

CreateSamlAttributes(string, ClaimsPrincipal)

Creates the SAML attributes from claims.

Declaration
public override IList<SamlAttribute> CreateSamlAttributes(string partnerName, ClaimsPrincipal claimsPrincipal)
Parameters
Type Name Description
string partnerName

The partner provider name.

ClaimsPrincipal claimsPrincipal

The claims principal.

Returns
Type Description
IList<SamlAttribute>

The SAML attributes.

Overrides
AbstractSamlClaimFactory.CreateSamlAttributes(string, ClaimsPrincipal)

CreateSamlUserID(string, ClaimsPrincipal)

Creates the SAML user ID from claims.

Declaration
public override string CreateSamlUserID(string partnerName, ClaimsPrincipal claimsPrincipal)
Parameters
Type Name Description
string partnerName

The partner provider name.

ClaimsPrincipal claimsPrincipal

The claims principal.

Returns
Type Description
string

The SAML user ID.

Overrides
AbstractSamlClaimFactory.CreateSamlUserID(string, ClaimsPrincipal)

Implements

ISamlClaimFactory
In this article
Back to top Copyright © ComponentSpace Pty Ltd 2017-2025. All rights reserved.