MetadataAttributeExtractor

Overview

Indicated by type="Metadata", this AttributeExtractor allows well-defined content from within SAML Metadata to be extracted and passed to an application as an attribute. This plugin executes only when extraction of an <md:RoleDescriptor> (or one of its concrete subtypes) is done, which is dependent on the use of the metadataAttributePrefix <ApplicationDefaults> setting.

Reference

Attributes

The following XML attributes are supported by this type:

Name

Type

Description

Name

Type

Description

AttributeProfile

string

Names the SP attribute to carry the value(s) of the <md:AttributeProfile> element(s) found in the metadata

errorURL

string

Names the SP attribute to carry the value of the errorURL attribute found in the metadata

DisplayName

string

Names the SP attribute to carry the value of the <mdui:DisplayName> element found in the metadata. The element chosen is the one that best matches client and/or SP language preferences.

Description

string

Names the SP attribute to carry the value of the <mdui:Description> element found in the metadata. The element chosen is the one that best matches client and/or SP language preferences.

InformationURL

string

Names the SP attribute to carry the value of the <mdui:InformationURL> element found in the metadata. The element chosen is the one that best matches client and/or SP language preferences

PrivacyStatementURL

string

Names the SP attribute to carry the value of the <mdui:PrivacyStatementURL> element found in the metadata. The element chosen is the one that best matches client and/or SP language preferences.

OrganizationName

string

Names the SP attribute to carry the value of the <md:OrganizationName> element found in the metadata. The element chosen is the one that best matches client and/or SP language preferences.

OrganizationDisplayName

string

Names the SP attribute to carry the value of the <md:OrganizationDisplayName> element found in the metadata. The element chosen is the one that best matches client and/or SP language preferences.

OrganizationURL

string

Names the SP attribute to carry the value of the <md:OrganizationURL> element found in the metadata. The element chosen is the one that best matches client and/or SP language preferences.

registrationAuthority 3.1

string

Names the SP attribute to carry the value of the registrationAuthority attribute found in the metadata.

Child Elements

The following child elements are supported by this type:

Name

Cardinality

Description

Name

Cardinality

Description

<ContactPerson>

0 or more

Each element defines a rule for extracting <md:ContactPerson> element information from the metadata.

Attributes

  • id (string, required)  Name of the SP attribute to create

  • contactType (string, required)  Indicates which type of contact to locate in the metadata for extraction. The first match is used.

  • formatter (string, required) A formatting string used to configure a DOM AttributeDecoder. For example, "$GivenName $SurName"

<Logo>

0 or more

Each element defines a rule for extracting <mdui:Logo> element information from the metadata. The height and width settings, if provided, are used to find the logo with the smallest total difference in size between the inputs.

Attributes

  • id (string, required)   Name of the SP attribute to create

  • height (unsigned integer) Input to logo size matching

  • width (unsigned integer) Input to logo size matching

  • formatter (string, required)  A formatting string used to configure a DOM AttributeDecoder. For example, "<img src='$_string' height='$height' width='$width'/>"

Example

<AttributeExtractor type="Metadata" errorURL="errorURL" DisplayName="displayName"/>