CompositeAttributeDefinition

The Shibboleth V1 software has reached its End of Life and is no longer supported. This documentation is available for historical purposes only.

CompositeAttributeDefinition

Configuring a Composite Attribute

NOTE: A functional version of this definition has not yet been included in an IdP release but may be retrieved from the source control system if you feel comfortable doing so until is it available in another, easier to install, from.

This attribute definition allows distinct attributes to composed (e.g. concatenated) to form new attributes. For example, the year, course number, and course section may be combined together to produce a course identifier. The actual composition is performed through the Java message format class.

Configuring the Definition

  1. Create a CompositeAttributeDefinition element, with its id attribute, and following attributes:

    • orderedSourceNames - a comma seperated, ordered, list of source attributes to be composed

    • format - the message format string used to compose the attributes

Note that all the source attributes used, if they are multi-value, must contain the same number of values or you will recieved an error when the formatter tries to read a value from an attribute that does not exist.

Example Configuration

<CompositeAttributeDefinition id="course_entitlements" orderedSourceNames="enroll_year_code,term_code,dept_num_code,course_num" format="urn:mace:osu.edu:course:{0}-{1}-{2}-{3}"> <DataConnectorDependency requires="courses"/> </CompositeAttributeDefinition>