Fix logout initiated by idp in public part
This commit is contained in:
parent
c7d7a3a621
commit
ffe640e106
|
@ -3,9 +3,11 @@
|
|||
/* Loading simplesamlphp */
|
||||
include_spip('inc/simplesamlphp/lib/_autoload');
|
||||
|
||||
include_spip('inc/my_auth');
|
||||
include_spip('inc/headers');
|
||||
include_spip('inc/session');
|
||||
|
||||
include_spip('inc/my_auth');
|
||||
|
||||
function saml_definir_session($session)
|
||||
{
|
||||
// Vérification de la connection à l'idp
|
||||
|
@ -15,6 +17,7 @@ function saml_definir_session($session)
|
|||
if (!$simplesaml->isAuthenticated())
|
||||
{
|
||||
my_spip_logout();
|
||||
redirige_par_entete('/');
|
||||
}
|
||||
}
|
||||
return $session;
|
||||
|
|
Reference in New Issue