Is your feature request related to a problem? Please describe.
When an IDP has a lot of SPs registered it makes more sense to have each SP metadata in an individual file. Currently this type of layout is not directly supported.
Describe the solution you'd like
metadata.sources with type xml should support a config named directory which would search for all xml files inside that directory, and add all of those metadatas.
Describe alternatives you've considered
Writing a piece of code in the config.php which lists all XML files inside the pretended directory and for each one adds an entry to metadata.sources with ['type' => 'xml', 'file' => 'path-to-the-file']
Additional context
An even better approach would be:
['type' => 'directory', 'directory' => 'the-directory', 'set' => 'remote']
All php and xml metadata files inside the-directory would be added.
A XML metadata can be easily distinguished from IDP vs SP because of md:IDPSSODescriptor vs md:SPSSODescriptor.
A simplesamlphp metadata can be easily distinguished from IDP vs SP because of the metadata-set field. In this case it is even possible to distinguish between remote vs hosted.
Is your feature request related to a problem? Please describe.
When an IDP has a lot of SPs registered it makes more sense to have each SP metadata in an individual file. Currently this type of layout is not directly supported.
Describe the solution you'd like
metadata.sourceswith type xml should support a config nameddirectorywhich would search for all xml files inside that directory, and add all of those metadatas.Describe alternatives you've considered
Writing a piece of code in the config.php which lists all XML files inside the pretended directory and for each one adds an entry to
metadata.sourceswith['type' => 'xml', 'file' => 'path-to-the-file']Additional context
An even better approach would be:
['type' => 'directory', 'directory' => 'the-directory', 'set' => 'remote']All php and xml metadata files inside
the-directorywould be added.A XML metadata can be easily distinguished from IDP vs SP because of
md:IDPSSODescriptorvsmd:SPSSODescriptor.A simplesamlphp metadata can be easily distinguished from IDP vs SP because of the
metadata-setfield. In this case it is even possible to distinguish between remote vs hosted.