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

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

The EntityRoleWhiteList filter retains all entities that have at least one of the specified roles. Most commonly this is used to filter out entities that do not have an SP role, allowing the corresponding memory to be reclaimed.

Filter order is important!

This filter changes the content of the metadata and so a filter of type EntityRoleWhiteList should appear after any SignatureValidationFilter in the overall sequence of filters.

Namespace and Schema

The <MetadataFilter> element and the type EntityRoleWhiteList are defined by the urn:mace:shibboleth:2.0:metadata schema, which can be located at http://shibboleth.net/schema/idp/shibboleth-metadata.xsd.

Reference

Attributes

NameTypeDefaultDescription

removeRolelessEntityDescriptors

Booleantrue

Controls whether to keep entity descriptors that contain no roles

removeEmptyEntitiesDescriptors

BooleantrueControls whether to keep entities descriptors that contain no entity descriptors

Child Elements

NameCardinalityDescription

<RetainedRole>

0 or more

The textual content is the XML QName of the role to be retained.

Note that property replacement cannot be used on this element.

Examples

Retain entities with an SP role
<MetadataFilter xsi:type="EntityRoleWhiteList" xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata">
    <RetainedRole>md:SPSSODescriptor</RetainedRole>
</MetadataFilter>

Don't forget to configure at least one child element

If you forget to configure at least one <RetainedRole> child element, the filter will retain no entities; that is, an empty <MetadataFilter> element of type EntityRoleWhiteList will remove all entities from the input. This is probably not what you want to do.
  • No labels