Page tree
Skip to end of metadata
Go to start of metadata

The SchemaValidation filter allows the validation of the provided metadata against an XML schema. Note that while schema validation can catch a variety of errors in metadata, it is not sufficient to prevent all possible sources of error because XSD isn't expressive enough in practice to describe all requirements of the standard. Metadata sources should be limited to trustworthy publishers whether this filter is used or not.

Schema

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

Attributes

The only supported attribute is  schemaBuilderRef, which is the ID of a Spring bean which implements or extends SAMLSchemaBuilder. If this attribute is not specified, then the globally defined bean called shibboleth.SchemaBuilder is used.

This will validate against SAML 2.0, SAML 1.1 and many popular metadata extension schemas such as MDATTR, MDUI and MDRPI.

Child Elements

The only defined, child element, <ExtensionSchema>, is DEPRECATED.

Examples

SAML Schema Validation
<metadata:MetadataFilter xsi:type="metadata:SchemaValidation" />
  • No labels