You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
metadata.sources xml should accept a directory #1368
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.
I'd like to see a generic solution that would work for both xml-files and flatfiles..
Instead of the 'file' and 'directory' parameter we could have a 'path' parameter and then programmatically determine whether it's a file or a directory. If it's a dir, we need to wrap an iterator around the existing code..
Activity
tvdijen commentedon Aug 21, 2020
Related: #1292
I'd like to see a generic solution that would work for both xml-files and flatfiles..
Instead of the 'file' and 'directory' parameter we could have a 'path' parameter and then programmatically determine whether it's a file or a directory. If it's a dir, we need to wrap an iterator around the existing code..
Lasering commentedon Aug 21, 2020
That is what I was suggesting in the
Additional Context.monkeyiq commentedon Mar 21, 2024
I have merged a PR #2018 with this functionality into the simplesamlphp-2.3 branch and master.
The patch should also back port to a 2.2 release reasonably well if you would like to take it for a test run.