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

Remove support for hosted SP metadata in MetadataStorageHandler.

parent 62d6e53e
No related branches found
No related tags found
No related merge requests found
......@@ -73,7 +73,7 @@ class SimpleSAML_Metadata_MetaDataStorageHandler {
* @param $set The set we the property comes from.
* @return The autogenerated metadata property.
*/
public function getGenerated($property, $set = 'saml20-sp-hosted') {
public function getGenerated($property, $set) {
/* First we check if the user has overridden this property in the metadata. */
try {
......@@ -93,19 +93,12 @@ class SimpleSAML_Metadata_MetaDataStorageHandler {
$config->getBaseURL();
if ($set == 'saml20-sp-hosted') {
switch ($property) {
case 'AssertionConsumerService' :
return $baseurl . 'saml2/sp/AssertionConsumerService.php';
case 'SingleLogoutService' :
return $baseurl . 'saml2/sp/SingleLogoutService.php';
switch ($property) {
case 'SingleLogoutServiceBinding' :
return SAML2_Const::BINDING_HTTP_REDIRECT;
}
} elseif($set == 'saml20-idp-hosted') {
switch ($property) {
switch ($property) {
case 'SingleSignOnService' :
return $baseurl . 'saml2/idp/SSOService.php';
......@@ -118,11 +111,6 @@ class SimpleSAML_Metadata_MetaDataStorageHandler {
case 'SingleLogoutServiceBinding' :
return SAML2_Const::BINDING_HTTP_REDIRECT;
}
} elseif($set == 'shib13-sp-hosted') {
switch ($property) {
case 'AssertionConsumerService' :
return $baseurl . 'shib13/sp/AssertionConsumerService.php';
}
} elseif($set == 'shib13-idp-hosted') {
switch ($property) {
case 'SingleSignOnService' :
......@@ -181,7 +169,7 @@ class SimpleSAML_Metadata_MetaDataStorageHandler {
* @param $set The set we want metadata from.
* @return An associative array with the metadata.
*/
public function getMetaDataCurrent($set = 'saml20-sp-hosted') {
public function getMetaDataCurrent($set) {
return $this->getMetaData(NULL, $set);
}
......@@ -194,7 +182,7 @@ class SimpleSAML_Metadata_MetaDataStorageHandler {
* @param $type Do you want to return the metaindex or the entityID. [entityid|metaindex]
* @return The entity id which is associated with the current hostname/path combination.
*/
public function getMetaDataCurrentEntityID($set = 'saml20-sp-hosted', $type = 'entityid') {
public function getMetaDataCurrentEntityID($set, $type = 'entityid') {
assert('is_string($set)');
......@@ -268,7 +256,7 @@ class SimpleSAML_Metadata_MetaDataStorageHandler {
* the current entity id based on the current hostname/path.
* @param $set The set of metadata we are looking up the entity id in.
*/
public function getMetaData($index, $set = 'saml20-sp-hosted') {
public function getMetaData($index, $set) {
assert('is_string($set)');
......
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