diff --git a/modules/saml/lib/Auth/Source/SP.php b/modules/saml/lib/Auth/Source/SP.php index 6edbc3e04c266edc7f474fda2ea18804cd0dadd7..5155d48440f47a4780575beeb8edad8bad942ea9 100644 --- a/modules/saml/lib/Auth/Source/SP.php +++ b/modules/saml/lib/Auth/Source/SP.php @@ -59,7 +59,7 @@ class sspmod_saml_Auth_Source_SP extends SimpleSAML_Auth_Source { $this->idp = $this->metadata->getString('idp', NULL); $this->discoURL = $this->metadata->getString('discoURL', NULL); - if (SimpleSAML_Module::isModuleEnabled('discojuice')) { + if (empty($this->discoURL) && SimpleSAML_Module::isModuleEnabled('discojuice')) { $this->discoURL = SimpleSAML_Module::getModuleURL('discojuice/central.php'); } }