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

Change "idpdisco.url.saml2" to "idpdisco.url.saml20", to be consistent with...

Change "idpdisco.url.saml2" to "idpdisco.url.saml20", to be consistent with the rest of simpleSAMLphp. Also include a forgotten change from the last patch.


git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@616 44740490-163a-0410-bde0-09ae8108e29a
parent c015b70b
No related branches found
No related tags found
No related merge requests found
...@@ -181,7 +181,7 @@ $config = array ( ...@@ -181,7 +181,7 @@ $config = array (
* By default simpleSAMLphp will use its builtin IdP discovery service. * By default simpleSAMLphp will use its builtin IdP discovery service.
*/ */
'idpdisco.url.shib13' => NULL, 'idpdisco.url.shib13' => NULL,
'idpdisco.url.saml2' => NULL, 'idpdisco.url.saml20' => NULL,
/* /*
* IdP Discovery service look configuration. * IdP Discovery service look configuration.
......
...@@ -293,7 +293,7 @@ ...@@ -293,7 +293,7 @@
<glossdef> <glossdef>
<para>Set which IdP discovery service this SP should use. If <para>Set which IdP discovery service this SP should use. If
this is unset, the IdP discovery service specified in the global this is unset, the IdP discovery service specified in the global
option <literal>idpdisco.url.saml2</literal> in option <literal>idpdisco.url.saml20</literal> in
<filename>config/config.php</filename> will be used. If that one <filename>config/config.php</filename> will be used. If that one
is also unset, the builtin default discovery service will be is also unset, the builtin default discovery service will be
used.</para> used.</para>
......
...@@ -31,7 +31,7 @@ try { ...@@ -31,7 +31,7 @@ try {
if($idpentityid === NULL) { if($idpentityid === NULL) {
/* We are going to need the SP metadata to determine which IdP discovery service we should use. */ /* We are going to need the SP metadata to determine which IdP discovery service we should use. */
$spmetadata = $metadata->getMetaData($spentityid); $spmetadata = $metadata->getMetaDataCurrent('saml20-sp-hosted');
} }
} catch (Exception $exception) { } catch (Exception $exception) {
...@@ -51,8 +51,8 @@ if ($idpentityid == null) { ...@@ -51,8 +51,8 @@ if ($idpentityid == null) {
*/ */
if(array_key_exists('idpdisco.url', $spmetadata)) { if(array_key_exists('idpdisco.url', $spmetadata)) {
$discourl = $spmetadata['idpdisco.url']; $discourl = $spmetadata['idpdisco.url'];
} elseif($config->getValue('idpdisco.url.saml2', NULL) !== NULL) { } elseif($config->getValue('idpdisco.url.saml20', NULL) !== NULL) {
$discourl = $config->getValue('idpdisco.url.saml2', NULL); $discourl = $config->getValue('idpdisco.url.saml20', NULL);
} else { } else {
$discourl = '/' . $config->getBaseURL() . 'saml2/sp/idpdisco.php'; $discourl = '/' . $config->getBaseURL() . 'saml2/sp/idpdisco.php';
} }
......
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