MappedAttributeDefinition

The Shibboleth IdP V4 software has reached its End of Life and is no longer supported. This documentation is available for historical purposes only. See the IDP5 wiki space for current documentation on the supported version.

MappedAttributeDefinition

Namespace: urn:mace:shibboleth:2.0:resolver
Schema: http://shibboleth.net/schema/idp/shibboleth-attribute-resolver.xsd

Overview

The Mapped AttributeDefinition performs a many-to-one mapping from source attributes values to a return value according to a series of mapping statements. If an input value matches no mapping rule, then a default can be provided.

Reference

Example

<AttributeDefinition id="mapped" xsi:type="Mapped"> <InputAttributeDefinition ref="uid" /> <DefaultValue passThru="true"/> <ValueMap> <ReturnValue>return1</ReturnValue> <SourceValue>sou.+rc.+e1</SourceValue> <SourceValue partialMatch="true">fred</SourceValue> <SourceValue caseSensitive="false">Ignore.+Case.+When.+Comparing</SourceValue> </ValueMap> <ValueMap> <ReturnValue>return1</ReturnValue> <SourceValue>source2</SourceValue> </ValueMap> <ValueMap> <ReturnValue>some_string_to_add_before_value:$1</ReturnValue> <SourceValue>(.+)</SourceValue> </ValueMap> <AttributeEncoder xsi:type="SAML2String" name="https://example.org/example/name" friendlyName="Mapped" encodeType="false" />  </AttributeDefinition>