diff --git a/app/Http/Controllers/Auth/SamlController.php b/app/Http/Controllers/Auth/SamlController.php index 48c8d05ab8..5a2075daed 100644 --- a/app/Http/Controllers/Auth/SamlController.php +++ b/app/Http/Controllers/Auth/SamlController.php @@ -128,7 +128,8 @@ class SamlController extends Controller public function sls(Request $request) { $auth = $this->saml->getAuth(); - $sloUrl = $auth->processSLO(true, null, null, null, true); + $retrieveParametersFromServer = $this->saml->getSetting('retrieveParametersFromServer', false); + $sloUrl = $auth->processSLO(true, null, $retrieveParametersFromServer, null, true); $errors = $auth->getErrors(); if (!empty($errors)) { diff --git a/app/Services/Saml.php b/app/Services/Saml.php index bb6c24cffb..fa2eb13105 100644 --- a/app/Services/Saml.php +++ b/app/Services/Saml.php @@ -324,6 +324,20 @@ class Saml return $this->_auth; } + /** + * Get a setting. + * + * @author Johnson Yi + * + * @param string|array|int $key + * @param mixed $default + * + * @return void + */ + public function getSetting($key, $default = null) { + return data_get($this->_settings, $key, $default); + } + /** * Gets the SP metadata. The XML representation. *