Revision: 1819
Author: olavmrk
Date: Mon Oct  5 06:01:13 2009
Log: Frontpage: Mark old saml20 and shib13 metadata as deprecated.
http://code.google.com/p/simplesamlphp/source/detail?r=1819

Modified:
  /trunk/modules/core/templates/frontpage_federation.tpl.php
  /trunk/modules/core/www/frontpage_federation.php

=======================================
--- /trunk/modules/core/templates/frontpage_federation.tpl.php  Mon Sep 21  
23:40:00 2009
+++ /trunk/modules/core/templates/frontpage_federation.tpl.php  Mon Oct  5  
06:01:13 2009
@@ -55,6 +55,8 @@
        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))
=======================================
--- /trunk/modules/core/www/frontpage_federation.php    Thu Sep  3 03:37:23  
2009
+++ /trunk/modules/core/www/frontpage_federation.php    Mon Oct  5 06:01:13  
2009
@@ -96,6 +96,7 @@
  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.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');

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"simpleSAMLphp commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/simplesamlphp-commits?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to