Skip to content
Snippets Groups Projects
Commit 5e1a722a authored by Jaime Perez Crespo's avatar Jaime Perez Crespo
Browse files

Export the new 'hide.from.discovery' option in the PHP metadata array when the...

Export the new 'hide.from.discovery' option in the PHP metadata array when the "Hide From Discovery" REFEDS Entity Category is defined in the hosted IdP metadata.
parent 67e778cb
No related branches found
No related tags found
No related merge requests found
......@@ -136,6 +136,15 @@ try {
if ($idpmeta->hasValue('EntityAttributes')) {
$metaArray['EntityAttributes'] = $idpmeta->getArray('EntityAttributes');
// check for entity categories
$entity_category = 'http://macedir.org/entity-category';
$hide_from_discovery = 'http://refeds.org/category/hide-from-discovery';
if (array_key_exists($entity_category, $metaArray['EntityAttributes'])) {
if (in_array($hide_from_discovery, $metaArray['EntityAttributes'][$entity_category])) {
$metaArray['hide.from.discovery'] = true;
}
}
}
if ($idpmeta->hasValue('UIInfo')) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment