diff --git a/www/saml2/idp/metadata.php b/www/saml2/idp/metadata.php index 6d402781d1099f624b63de05541479d5d73c2a94..77355811be7604d9f07acd838dd43e0de4e851b5 100644 --- a/www/saml2/idp/metadata.php +++ b/www/saml2/idp/metadata.php @@ -39,8 +39,6 @@ try { $urlSLOr = $metadata->getGenerated('SingleLogoutServiceResponse', 'saml20-idp-hosted', array('logouttype' => $logouttype)); $metaArray = array( - 'name' => 'Type in a name for this entity', - 'description' => 'and a proper description that would help users know when to select this IdP.', 'SingleSignOnService' => $metadata->getGenerated('SingleSignOnService', 'saml20-idp-hosted', array()), 'SingleLogoutService' => $metadata->getGenerated('SingleLogoutService', 'saml20-idp-hosted', array('logouttype' => $logouttype)), 'SingleLogoutServiceResponse' => $metadata->getGenerated('SingleLogoutServiceResponse', 'saml20-idp-hosted', array('logouttype' => $logouttype)), @@ -56,6 +54,15 @@ try { } else { $metaArray['NameIDFormat'] = 'urn:oasis:names:tc:SAML:2.0:nameid-format:transient'; } + if (array_key_exists('name', $idpmeta)) { + $metaArray['name'] = $idpmeta['name']; + } + if (array_key_exists('description', $idpmeta)) { + $metaArray['description'] = $idpmeta['description']; + } + if (array_key_exists('url', $idpmeta)) { + $metaArray['url'] = $idpmeta['url']; + } $metaflat = var_export($idpentityid, TRUE) . ' => ' . var_export($metaArray, TRUE) . ','; diff --git a/www/saml2/sp/metadata.php b/www/saml2/sp/metadata.php index e62de3c8e6569d614eaa00e3bd2b875aa208ae70..ed84a00a3af36f1ae2ebc39ff2aa850183ff2e23 100644 --- a/www/saml2/sp/metadata.php +++ b/www/saml2/sp/metadata.php @@ -36,7 +36,15 @@ try { } else { $metaArray['NameIDFormat'] = 'urn:oasis:names:tc:SAML:2.0:nameid-format:transient'; } - + if (array_key_exists('name', $spmeta)) { + $metaArray['name'] = $spmeta['name']; + } + if (array_key_exists('description', $spmeta)) { + $metaArray['description'] = $spmeta['description']; + } + if (array_key_exists('url', $spmeta)) { + $metaArray['url'] = $spmeta['url']; + } $certInfo = SimpleSAML_Utilities::loadPublicKey($spmeta); if ($certInfo !== NULL && array_key_exists('certData', $certInfo)) { diff --git a/www/shib13/idp/metadata.php b/www/shib13/idp/metadata.php index 624ab6113492c186a9d242e3ea2a4b5fc4053410..99bfd3647dd515cf63863682cd2aef2664a902aa 100644 --- a/www/shib13/idp/metadata.php +++ b/www/shib13/idp/metadata.php @@ -33,8 +33,6 @@ try { } $metaArray = array( - 'name' => 'Type in a name for this entity', - 'description' => 'and a proper description that would help users know when to select this IdP.', 'SingleSignOnService' => $metadata->getGenerated('SingleSignOnService', 'shib13-idp-hosted'), 'certFingerprint' => $certFingerprint, ); @@ -44,6 +42,15 @@ try { } else { $metaArray['NameIDFormat'] = 'urn:mace:shibboleth:1.0:nameIdentifier'; } + if (array_key_exists('name', $idpmeta)) { + $metaArray['name'] = $idpmeta['name']; + } + if (array_key_exists('description', $idpmeta)) { + $metaArray['description'] = $idpmeta['description']; + } + if (array_key_exists('url', $idpmeta)) { + $metaArray['url'] = $idpmeta['url']; + } $metaflat = var_export($idpentityid, TRUE) . ' => ' . var_export($metaArray, TRUE) . ','; diff --git a/www/shib13/sp/metadata.php b/www/shib13/sp/metadata.php index 4e10cffc91fa8bd08786ce53f9514b78f8fe6d30..d9cda187754d8540cbc7cbee872bb1809bf4b072 100644 --- a/www/shib13/sp/metadata.php +++ b/www/shib13/sp/metadata.php @@ -41,6 +41,15 @@ try { } else { $metaArray['NameIDFormat'] = 'urn:mace:shibboleth:1.0:nameIdentifier'; } + if (array_key_exists('name', $spmeta)) { + $metaArray['name'] = $spmeta['name']; + } + if (array_key_exists('description', $spmeta)) { + $metaArray['description'] = $spmeta['description']; + } + if (array_key_exists('url', $spmeta)) { + $metaArray['url'] = $spmeta['url']; + } $metaflat = var_export($spentityid, TRUE) . ' => ' . var_export($metaArray, TRUE) . ',';