mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
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:
commit
8aeeabdbc1
@ -185,7 +185,7 @@ if (isset($config['force_instant_logout']) === true
|
|||||||
header_remove('Set-Cookie');
|
header_remove('Set-Cookie');
|
||||||
setcookie(session_name(), $_COOKIE[session_name()], (time() - 4800), '/');
|
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';
|
include_once $config['saml_path'].'simplesamlphp/lib/_autoload.php';
|
||||||
$as = new SimpleSAML_Auth_Simple('PandoraFMS');
|
$as = new SimpleSAML_Auth_Simple('PandoraFMS');
|
||||||
$as->logout();
|
$as->logout();
|
||||||
|
@ -52,12 +52,6 @@ if ($config['force_instant_logout'] === true) {
|
|||||||
session_destroy();
|
session_destroy();
|
||||||
header_remove('Set-Cookie');
|
header_remove('Set-Cookie');
|
||||||
setcookie(session_name(), $_COOKIE[session_name()], (time() - 4800), '/');
|
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) {
|
while (ob_get_length() > 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user