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

Give absolute priority to DisplayName also for SAML 1.x IdPs/SPs.

parent 28f816f0
No related branches found
No related tags found
No related merge requests found
......@@ -498,6 +498,11 @@ class SimpleSAML_Metadata_SAMLParser {
/* Add extensions. */
$this->addExtensions($ret, $spd);
// prioritize mdui:DisplayName as the name if available
if (!empty($ret['UIInfo']['DisplayName'])) {
$ret['name'] = $ret['UIInfo']['DisplayName'];
}
return $ret;
}
......@@ -549,6 +554,11 @@ class SimpleSAML_Metadata_SAMLParser {
/* Add extensions. */
$this->addExtensions($ret, $idp);
// prioritize mdui:DisplayName as the name if available
if (!empty($ret['UIInfo']['DisplayName'])) {
$ret['name'] = $ret['UIInfo']['DisplayName'];
}
return $ret;
}
......
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