mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
And still more debugging
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
4fccf4ddc4
commit
5869b6ed0c
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in a new issue