From 62d6e53edf8126c2aa690c80198365a12857f2c3 Mon Sep 17 00:00:00 2001 From: Jaime Perez <jaime.perez@uninett.no> Date: Tue, 4 Mar 2014 16:24:05 +0100 Subject: [PATCH] Force XML_Shib13_AuthnRequest::createRedirect() to receive a shire. --- lib/SimpleSAML/XML/Shib13/AuthnRequest.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/SimpleSAML/XML/Shib13/AuthnRequest.php b/lib/SimpleSAML/XML/Shib13/AuthnRequest.php index ccb4d94e0..651b87512 100644 --- a/lib/SimpleSAML/XML/Shib13/AuthnRequest.php +++ b/lib/SimpleSAML/XML/Shib13/AuthnRequest.php @@ -27,14 +27,10 @@ class SimpleSAML_XML_Shib13_AuthnRequest { return $this->issuer; } - public function createRedirect($destination, $shire = NULL) { + public function createRedirect($destination, $shire) { $metadata = SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler(); $idpmetadata = $metadata->getMetaDataConfig($destination, 'shib13-idp-remote'); - if ($shire === NULL) { - $shire = $metadata->getGenerated('AssertionConsumerService', 'shib13-sp-hosted'); - } - $desturl = $idpmetadata->getDefaultEndpoint('SingleSignOnService', array('urn:mace:shibboleth:1.0:profiles:AuthnRequest')); $desturl = $desturl['Location']; -- GitLab