From 7858855e0cd6e4fc5bf6f71d3b4251a4a47af85e Mon Sep 17 00:00:00 2001 From: Olav Morken <olav.morken@uninett.no> Date: Wed, 4 Nov 2009 13:53:47 +0000 Subject: [PATCH] metaedit: Handle the new metadata format. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1953 44740490-163a-0410-bde0-09ae8108e29a --- modules/metaedit/www/edit.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/metaedit/www/edit.php b/modules/metaedit/www/edit.php index 5beb272af..f8f47917a 100644 --- a/modules/metaedit/www/edit.php +++ b/modules/metaedit/www/edit.php @@ -39,6 +39,10 @@ if (array_key_exists('entityid', $_REQUEST)) { $entity = array_pop($entities); $metadata = $entity->getMetadata20SP(); + /* Trim metadata endpoint arrays. */ + $metadata['AssertionConsumerService'] = SimpleSAML_Utilities::getDefaultEndpoint($metadata['AssertionConsumerService'], array(SAML2_Const::BINDING_HTTP_POST)); + $metadata['SingleLoogutService'] = SimpleSAML_Utilities::getDefaultEndpoint($metadata['SingleLogoutService'], array(SAML2_Const::BINDING_HTTP_REDIRECT)); + } else { $metadata = array( 'owner' => $userid, -- GitLab