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

Parse the "Hide From Discovery" REFEDS Entity Category in SAML metadata as the...

Parse the "Hide From Discovery" REFEDS Entity Category in SAML metadata as the new 'hide.from.discovery' configuration option for remote IdP metadata.
parent 4c742189
No related branches found
No related tags found
No related merge requests found
......@@ -488,6 +488,15 @@ class SimpleSAML_Metadata_SAMLParser
if (!empty($this->entityAttributes)) {
$metadata['EntityAttributes'] = $this->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, $metadata['EntityAttributes'])) {
if (in_array($hide_from_discovery, $metadata['EntityAttributes'][$entity_category])) {
$metadata['hide.from.discovery'] = true;
}
}
}
if (!empty($roleDescriptor['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