Merge branch 'ent-11277-15627-15577-public-dashboards-tras-desloguearse-usando-saml-no-funcionan' into 'develop'

Ent 11277 15627 15577 public dashboards tras desloguearse usando saml no funcionan

See merge request artica/pandorafms!5958
This commit is contained in:
Rafael Ameijeiras 2023-05-26 07:29:52 +00:00
commit 8aeeabdbc1
2 changed files with 1 additions and 7 deletions

View File

@ -185,7 +185,7 @@ if (isset($config['force_instant_logout']) === true
header_remove('Set-Cookie');
setcookie(session_name(), $_COOKIE[session_name()], (time() - 4800), '/');
if ($config['auth'] === 'saml') {
if ($config['auth'] === 'saml' && empty($public_hash) === true) {
include_once $config['saml_path'].'simplesamlphp/lib/_autoload.php';
$as = new SimpleSAML_Auth_Simple('PandoraFMS');
$as->logout();

View File

@ -52,12 +52,6 @@ if ($config['force_instant_logout'] === true) {
session_destroy();
header_remove('Set-Cookie');
setcookie(session_name(), $_COOKIE[session_name()], (time() - 4800), '/');
if ($config['auth'] == 'saml') {
include_once $config['saml_path'].'simplesamlphp/lib/_autoload.php';
$as = new SimpleSAML_Auth_Simple('PandoraFMS');
$as->logout();
}
}
while (ob_get_length() > 0) {