Skip to content

metadata.sources xml should accept a directory #1368

@Lasering

Description

@Lasering

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions