Class SamlMappingRule
A SAML mapping rules performs a transform on the SAML identity information.
Mapping rules are useful for moving partner provider specific differences in SAML identity information from the application into the SAML configuration..
Inherited Members
Namespace: ComponentSpace.Saml2.Configuration.MappingRules
Assembly: ComponentSpace.Saml2.dll
Syntax
public class SamlMappingRule : Entity
Properties
Name
Gets or sets the name of the SAML attribute to which the rule applies.
If null
, the rule applies to the SAML name identifier.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string | The SAML attribute name or |
Rule
Gets or sets the rule name.
Declaration
public string Rule { get; set; }
Property Value
Type | Description |
---|---|
string | The rule name. |
Value
Gets or sets the value associated with the mapping rule.
Declaration
public string Value { get; set; }
Property Value
Type | Description |
---|---|
string | The mapping rule value. |
Methods
Apply(ref string, ref IList<SamlAttribute>)
Applies the mapping rule to the SAML identity information.
Declaration
public void Apply(ref string userID, ref IList<SamlAttribute> attributes)
Parameters
Type | Name | Description |
---|---|---|
string | userID | The SAML user name identifier. |
IList<SamlAttribute> | attributes | The SAML attributes. |