Namespace: urn:mace:shibboleth:2.0:metadata


A filter of type ByReference is a new syntax aid that allows MetadataFilterConfiguration to be defined outside of <MetadataProvider> elements and reference named providers "out of band", separating the declaration of general metadata source details from deployer-specific filtering rues.

There is nothing functionally different about using this approach; it's purely a configuration style issue.

The ByReference syntax relies on a set of child elements named <MetadataFilters> that contain a providerRef XML attribute identifying the <MetadataProvider> to apply a set of filters to, and then the filters to apply are declared within, in the normal way.

Filter order is important!

This filter may or may not change the content of the metadata and so its use needs to be carefully coordinated with any inline filters. Out of band filters will run after any inline filters.


XML Elements






Each out of band declaration consists of a required XML attribute named providerRef and a sequence of zero or more <MetadataFilter> elements of any of the normal types supported. V4.2+ allows providerRef to contain a space-delimited list of IDs of providers to apply the filter(s) to.


The examples shows a typical usage pattern via a separate Spring resource loaded into the metadata resolver service by adding it to the resource set in conf/services.xml (e.g., perhaps in a file named conf/metadata-filters.xml)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 <?xml version="1.0" encoding="UTF-8"?> <MetadataFilter xsi:type="ByReference" xmlns="urn:mace:shibboleth:2.0:metadata" xmlns:security="urn:mace:shibboleth:2.0:security" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" xmlns:alg="urn:oasis:names:tc:SAML:metadata:algsupport" xmlns:ds="" xmlns:ds11="" xmlns:enc="" xmlns:enc11="" xmlns:xsi="" xsi:schemaLocation="urn:mace:shibboleth:2.0:metadata urn:mace:shibboleth:2.0:security urn:oasis:names:tc:SAML:2.0:assertion urn:oasis:names:tc:SAML:2.0:metadata urn:oasis:names:tc:SAML:metadata:algsupport"> <MetadataFilters providerRef="InCommonMD"> <MetadataFilter xsi:type="EntityAttributes"> <saml:Attribute Name=""> <saml:AttributeValue>eduPersonPrincipalName</saml:AttributeValue> </saml:Attribute> <Entity></Entity> </MetadataFilter> </MetadataFilters> </MetadataFilter>