metadata-providers.xml syntax

Kevin Foote kpfoote at uoregon.edu
Mon Mar 7 12:56:53 EST 2016



> On Mar 7, 2016, at 9:46 AM, Robert Lamothe <robert_lamothe at yahoo.com> wrote:
> 
>     I'm trying to understand the syntax for metadata-providers.xml.   When I look at the web page on MetaDataConfiguration I see two examples:
> 
> <MetadataProvider id="LocalMetadata" xsi:type="FilesystemMetadataProvider"
>     xmlns="urn:mace:shibboleth:2.0:metadata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>     xsi:schemaLocation="urn:mace:shibboleth:2.0:metadata http://shibboleth.net/schema/idp/shibboleth-metadata.xsd"
>     failFastInitialization="true"
>     metadataFile="%{idp.home}/metadata/my-metadata.xml"/>
> 
> And
> 
> <MetadataProvider id="FederationMetadata" xsi:type="FileBackedHTTPMetadataProvider"
>     xmlns="urn:mace:shibboleth:2.0:metadata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>     xsi:schemaLocation="urn:mace:shibboleth:2.0:metadata http://shibboleth.net/schema/idp/shibboleth-metadata.xsd"
>     metadataURL="http://federation.example.org/metadata.xml"
>     backingFile="%{idp.home}/metadata/federation-metadata.xml">
>   
>     <MetadataFilter xsi:type="SignatureValidation" requireSignedRoot="true"
>         certificateFile="%{idp.home}/conf/metadata/fed-signing-key.pem"/>
>  
>     <MetadataFilter xsi:type="RequiredValidUntil" maxValidityInterval="P14D"/>
> </MetadataProvider>
> 
> 
>     What confuses me is that in one example the <MetadataProvider> doesn't have a closer in the form of </MetadataProvider> but the other one does.
> 
>     Is this a mistake in the example?  Or is there some logic that determines when you close the <MetadataProvider> and when you don’t?

In the first example - without the </MetadataProviders> explicit closing tag. The entire MetadataProvider element is encapsulated in the attributes of the element. 

The next example uses elements within the MetadataProvider itself so it needs the explicit closing tag. 

--------
thanks
 kevin.foote




More information about the users mailing list