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

metaedit: Handle the new metadata format.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1953 44740490-163a-0410-bde0-09ae8108e29a
parent e7b5b319
No related branches found
No related tags found
No related merge requests found
...@@ -39,6 +39,10 @@ if (array_key_exists('entityid', $_REQUEST)) { ...@@ -39,6 +39,10 @@ if (array_key_exists('entityid', $_REQUEST)) {
$entity = array_pop($entities); $entity = array_pop($entities);
$metadata = $entity->getMetadata20SP(); $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 { } else {
$metadata = array( $metadata = array(
'owner' => $userid, 'owner' => $userid,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment