Skip to content

A new MetaDataStorageHandlerDirectory class to load metadata from subdirectories#1984

Closed
monkeyiq wants to merge 3 commits into
simplesamlphp:simplesamlphp-2.1from
monkeyiq:2024/march/load-sp-from-directory2
Closed

A new MetaDataStorageHandlerDirectory class to load metadata from subdirectories#1984
monkeyiq wants to merge 3 commits into
simplesamlphp:simplesamlphp-2.1from
monkeyiq:2024/march/load-sp-from-directory2

Conversation

@monkeyiq
Copy link
Copy Markdown
Contributor

@monkeyiq monkeyiq commented Mar 4, 2024

This is another attempt at loading metadata from a subdirectory containing either php or xml files (or both). This specifically allows SP files to be broken out into one file per SP if there are a number of SPs and you wish to maintain a list using one file per SP.

It is quite possible that some code cleanups to this are desired before merging. It seems from the below links that the feature is desirable for a few users and having an implementation based on simplesamlphp-2.1 may allow a merge and closing of a long standing issue and long standing PR.

To be generic this also adds a file property to the config of the MetaDataStorageHandlerFlatFile class so it can be used to load the file instead of directly including it in the new MetaDataStorageHandlerDirectory class. This has the added advantage of a single code path to load those php files so other checks etc in the future can be all in one place.

This relates to #1292 and #1368.

monkeyiq and others added 3 commits February 26, 2024 18:48
…mlphp-2.1-docs

docs: adding some documentation aimed at new and returning developers
@tvdijen tvdijen force-pushed the simplesamlphp-2.1 branch from 7bd3008 to e4043d7 Compare March 6, 2024 22:34
@monkeyiq
Copy link
Copy Markdown
Contributor Author

I should redirect this PR to 2.2 now.

@tvdijen
Copy link
Copy Markdown
Member

tvdijen commented Mar 20, 2024

It's a new feature, not a bugfix, so this should target 2.3

@tvdijen tvdijen changed the base branch from simplesamlphp-2.1 to simplesamlphp-2.3 March 20, 2024 07:51
@tvdijen tvdijen changed the base branch from simplesamlphp-2.3 to simplesamlphp-2.1 March 20, 2024 07:51
@monkeyiq
Copy link
Copy Markdown
Contributor Author

I am guessing normally this would be against master instead. Though it seems master is a little more of a longer term release target at this stage :/ I might raise with the ssp board if they would like me to work a bit on master.

@monkeyiq
Copy link
Copy Markdown
Contributor Author

This is superseded by #2018

@monkeyiq monkeyiq closed this Mar 20, 2024
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jun 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants