Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The EntityAttributes MetadataFilter, identified by type="EntityAttributes", adds <mdattr:EntityAttributes> extension content to entities in order to drive software behavior based on them. Entity attributes are <saml:Attribute> elements that annotate entities in metadata. They can be used to populate user attributes at runtime, drive other metadata filters, or impact discovery interfaces.

Attributes

...

Reference

Child Elements

ElementCardinaltyDescription
<saml:Attribute>one or moreA SAML attribute to attach in an <mdattr:EntityAttributes> extension
<Entity>
zero or more

Contains the entityID of an entity to attach all the preceding attributes to.

All of the <saml:Attribute> tags preceding an <Entity> element will be attached to that entity

<EntityRegex> 3.1

zero or more

Contains a regular expression to match against candidate entityIDs.

All of the <saml:Attribute> tags preceding an <EntityRegex> element will be attached to the matching entities

Example

Code Block
languagexml
<MetadataFilter type="EntityAttributes">
    <saml:Attribute FriendlyName="state" Name="urn:oid:2.5.4.8" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion">
        <saml:AttributeValue>Ohio</saml:AttributeValue>
    </saml:Attribute>
    <saml:Attribute FriendlyName="locality" Name="urn:oid:2.5.4.7" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion">
        <saml:AttributeValue>Columbus</saml:AttributeValue>
    </saml:Attribute>
    <Entity>urn:mace:incommon:osu.edu</Entity>
    <Entity>http://idp.example.org/saml</Entity>
</MetadataFilter>