Class SamlMappingRule
- Namespace
- ComponentSpace.Saml2.Configuration.MappingRules
- Assembly
- ComponentSpace.Saml2.dll
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..
public class SamlMappingRule : Entity
- Inheritance
-
SamlMappingRule
- Inherited Members
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.
public string Name { get; set; }
Property Value
- string
The SAML attribute name or
nullif none.
Rule
Gets or sets the rule name.
public string Rule { get; set; }
Property Value
- string
The rule name.
Value
Gets or sets the value associated with the mapping rule.
public string Value { get; set; }
Property Value
- string
The mapping rule value.
Methods
Apply(ref string, ref IList<SamlAttribute>)
Applies the mapping rule to the SAML identity information.
public void Apply(ref string userID, ref IList<SamlAttribute> attributes)
Parameters
userIDstringThe SAML user name identifier.
attributesIList<SamlAttribute>The SAML attributes.