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.
FileBackedHTTPMetadataProvider
The HTTPMetadataProvider type is deprecated
As of V3.4, the HTTPMetadataProvider
type is deprecated and will be removed from IdP V4.0. Use a FileBackedHTTPMetadataProvider
instead.
The FileBackedHTTPMetadataProvider
loads a metadata file from an HTTP server. The provider periodically reloads the metadata file if necessary.
Use this provider with remote metadata
FileBackedHTTPMetadataProvider
is used with remote metadata. See the MetadataManagementBestPractices topic for more information.The FileBackedHTTPMetadataProvider
spools the metadata contents to a local backing file, which is used at startup. As of v3.3.0, the backing file is only used at startup. A refresh operation never consults the backing file since the latter can't possibly represent newer metadata than what is already cached in memory.
Contents
Schema Names and location
The <MetadataProvider>
element and the type FileBackedHTTPMetadataProvider
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
Any of the Common Attributes, the Reloading Attributes, or the HTTP Attributes may be configured. In addition, a FileBackedHTTPMetadataProvider
has a few attributes of its own, some of which are required:
Name | Type | Default | Description |
---|---|---|---|
metadataURL | URL | required | The URL that the metadata is served from. |
backingFile | File specificaton | required | Specifies where the backing file is located. If the remote server is unavailable at startup, the backing file is loaded instead. |
initializeFromBackupFile 3.3 | Boolean | true | Flag indicating whether initialization should first attempt to load metadata from the backup file. If true, foreground initialization will be performed by loading the backing file, and then a refresh from the remote HTTP server will be scheduled to execute in a background thread, after a configured delay. This can improve IdP startup times when the remote HTTP file is large in size. |
backupFileInitNextRefreshDelay 3.3 | Delay (ISO8601 format) | PT5S (5 seconds) | Delay duration after which to schedule next HTTP refresh when initialized from the backing file. |
Common Attributes
The following attributes are required on all metadata provider types:
Name | Type | Default | Description |
---|---|---|---|
id | String | required | Identifier for logging, identification for command line reload, etc. |
xsi:type | String | required | Specifies the exact type of provider to use (from those listed above, or a custom extension type). |
The following attributes are common to all metadata provider types except the ChainingMetadataProvider
type:
Name | Type | Default | Description |
---|---|---|---|
| Boolean | true | Whether candidate metadata found by the resolver must be valid in order to be returned (where validity is implementation specific, but in SAML cases generally depends on a |
| Boolean | true | Whether to fail initialization of the underlying MetadataResolverService (and possibly the IdP as a whole) if the initialization of a metadata provider fails. When false, the IdP may start, and will continue to attempt to reload valid metadata if configured to do so, but operations that require valid me |