Skip to content
Snippets Groups Projects
Commit 689185cc authored by Olav Morken's avatar Olav Morken
Browse files

Frontpage: Mark old saml20 and shib13 metadata as deprecated.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1819 44740490-163a-0410-bde0-09ae8108e29a
parent ab690777
No related branches found
No related tags found
No related merge requests found
......@@ -55,6 +55,8 @@ foreach ($this->data['metaentries']['hosted'] AS $hm) {
echo '<dt>' . $this->t(mtype($hm['metadata-set'])) . '</dt>';
echo '<dd>';
echo '<p>Entity ID: ' . $hm['entityid'];
if (isset($hm['deprecated']) && $hm['deprecated'])
echo '<br /><b>Deprecated</b>';
if ($hm['entityid'] !== $hm['metadata-index'])
echo '<br />Index: ' . $hm['metadata-index'];
if (array_key_exists('name', $hm))
......
......@@ -96,6 +96,7 @@ $metaentries = array('hosted' => $metadataHosted, 'remote' => array() );
if ($config->getBoolean('enable.saml20-sp', TRUE) === true) {
try {
$metaentries['hosted']['saml20-sp'] = $metadata->getMetaDataCurrent('saml20-sp-hosted');
$metaentries['hosted']['saml20-sp']['deprecated'] = TRUE;
$metaentries['hosted']['saml20-sp']['metadata-url'] = '/' . $config->getBaseURL() . 'saml2/sp/metadata.php?output=xhtml';
if ($isadmin)
$metaentries['remote']['saml20-idp-remote'] = $metadata->getList('saml20-idp-remote');
......@@ -112,6 +113,7 @@ if ($config->getBoolean('enable.saml20-idp', FALSE) === true) {
if ($config->getBoolean('enable.shib13-sp', FALSE) === true) {
try {
$metaentries['hosted']['shib13-sp'] = $metadata->getMetaDataCurrent('shib13-sp-hosted');
$metaentries['hosted']['shib13-sp']['deprecated'] = TRUE;
$metaentries['hosted']['shib13-sp']['metadata-url'] = '/' . $config->getBaseURL() . 'shib13/sp/metadata.php?output=xhtml';
if ($isadmin)
$metaentries['remote']['shib13-idp-remote'] = $metadata->getList('shib13-idp-remote');
......
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