Skip to content
Snippets Groups Projects
Commit 50f69065 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

bugfixing with saml 2.0 metadata parsing

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1208 44740490-163a-0410-bde0-09ae8108e29a
parent fcaf54e5
No related branches found
No related tags found
No related merge requests found
......@@ -420,9 +420,14 @@ class SimpleSAML_Metadata_SAMLParser {
/*
* Add organizational metadata
*/
$ret['name'] = $this->organizationDisplayName;
$ret['description'] = $this->organizationName;
if (!empty($this->organizationName)) {
$ret['name'] = $this->organizationName;
$ret['description'] = $this->organizationName;
}
if (!empty($this->organizationDisplayName)) {
$ret['name'] = $this->organizationDisplayName;
}
if (!empty($this->tags)) {
$ret['tags'] = $this->tags;
......@@ -654,8 +659,6 @@ class SimpleSAML_Metadata_SAMLParser {
$ret = $this->getMetadataCommon();
$ret['name'] = $this->entityId;
/* Find IdP information which supports the SAML 2.0 protocol. */
$idp = $this->getIdPDescriptors(self::$SAML20Protocols);
......@@ -692,11 +695,12 @@ class SimpleSAML_Metadata_SAMLParser {
$slo = $this->getDefaultEndpoint($idp['singleLogoutServices'], array(self::SAML_20_REDIRECT_BINDING));
if($slo !== NULL) {
$ret['SingleLogoutService'] = $slo['location'];
}
/* If the response location is set, include it in the returned metadata. */
if($slo['responseLocation']) {
$ret['SingleLogoutServiceResponse'] = $slo['responseLocation'];
/* If the response location is set, include it in the returned metadata. */
if(array_key_exists('responseLocation', $slo)) {
$ret['SingleLogoutServiceResponse'] = $slo['responseLocation'];
}
}
......
......@@ -18,6 +18,8 @@ if (!is_null($cronconfig->getValue('allowed_tags'))) {
}
}
$summary = array();
$croninfo = array(
'summary' => &$summary,
......
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