Added saml custom setting retrieveParametersFromServer to enable fixing SLO issues with Azure AD (#9187)

This commit is contained in:
johnson-yi 2021-02-24 06:05:22 +11:00 committed by GitHub
parent c8f6318aba
commit 763e17f491
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 1 deletions

View file

@ -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)) {

View file

@ -324,6 +324,20 @@ class Saml
return $this->_auth;
}
/**
* Get a setting.
*
* @author Johnson Yi <jyi.dev@outlook.com>
*
* @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.
*