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

Avoid the friendly names in attribute definitions to end up in the PHP...

Avoid the friendly names in attribute definitions to end up in the PHP generated metadata, as it creates trouble for the AttributeLimit filter and others.
parent fae34632
No related branches found
No related tags found
No related merge requests found
...@@ -207,6 +207,9 @@ unset($metaArray20['UIInfo']); ...@@ -207,6 +207,9 @@ unset($metaArray20['UIInfo']);
unset($metaArray20['metadata-set']); unset($metaArray20['metadata-set']);
unset($metaArray20['entityid']); unset($metaArray20['entityid']);
// sanitize the attributes array to remove friendly names
$metaArray20['attributes'] = array_values($metaArray20['attributes']);
/* Sign the metadata if enabled. */ /* Sign the metadata if enabled. */
$xml = SimpleSAML_Metadata_Signer::sign($xml, $spconfig->toArray(), 'SAML 2 SP'); $xml = SimpleSAML_Metadata_Signer::sign($xml, $spconfig->toArray(), 'SAML 2 SP');
......
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