mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-23 11:43:47 -08:00
Added saml custom setting retrieveParametersFromServer to enable fixing SLO issues with Azure AD (#9187)
This commit is contained in:
parent
c8f6318aba
commit
763e17f491
|
@ -128,7 +128,8 @@ class SamlController extends Controller
|
||||||
public function sls(Request $request)
|
public function sls(Request $request)
|
||||||
{
|
{
|
||||||
$auth = $this->saml->getAuth();
|
$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();
|
$errors = $auth->getErrors();
|
||||||
|
|
||||||
if (!empty($errors)) {
|
if (!empty($errors)) {
|
||||||
|
|
|
@ -324,6 +324,20 @@ class Saml
|
||||||
return $this->_auth;
|
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.
|
* Gets the SP metadata. The XML representation.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue