And still more debugging

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2022-05-10 12:38:46 -07:00
parent 4fccf4ddc4
commit 5869b6ed0c

View file

@ -130,9 +130,11 @@ class Saml
$this->clearData();
}
\Log::debug('Trying to create a new OneLogin_Saml2_Auth object ');
try {
$this->_auth = new OneLogin_Saml2_Auth($this->_settings);
} catch (Exception $e) {
\Log::debug('Trying OneLogin_Saml2_Auth failed - exception thrown. Setting SAML enabled to false.');
$this->_enabled = false;
}
}
@ -155,6 +157,7 @@ class Saml
$this->_enabled = $setting->saml_enabled == '1';
if ($this->isEnabled()) {
\Log::debug('SAML is enabled according to loadSettings()');
//Let onelogin/php-saml know to use 'X-Forwarded-*' headers if it is from a trusted proxy
OneLogin_Saml2_Utils::setProxyVars(request()->isFromTrustedProxy());