Skip to content
Snippets Groups Projects
Commit 62d6e53e authored by Jaime Perez's avatar Jaime Perez Committed by Jaime Perez Crespo
Browse files

Force XML_Shib13_AuthnRequest::createRedirect() to receive a shire.

parent 3cec8eea
No related branches found
No related tags found
No related merge requests found
...@@ -27,14 +27,10 @@ class SimpleSAML_XML_Shib13_AuthnRequest { ...@@ -27,14 +27,10 @@ class SimpleSAML_XML_Shib13_AuthnRequest {
return $this->issuer; return $this->issuer;
} }
public function createRedirect($destination, $shire = NULL) { public function createRedirect($destination, $shire) {
$metadata = SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler(); $metadata = SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler();
$idpmetadata = $metadata->getMetaDataConfig($destination, 'shib13-idp-remote'); $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 = $idpmetadata->getDefaultEndpoint('SingleSignOnService', array('urn:mace:shibboleth:1.0:profiles:AuthnRequest'));
$desturl = $desturl['Location']; $desturl = $desturl['Location'];
......
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