summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérôme Schneider <jschneider@entrouvert.com>2013-07-18 10:06:55 (GMT)
committerJérôme Schneider <jschneider@entrouvert.com>2013-07-18 10:06:55 (GMT)
commitffe640e1062b3dab21decc37939fb7b8272d82b4 (patch)
tree9bbd281b94e5f9ff3d7cf1caaa4ceecf6e3b19a5
parentc7d7a3a6213424bcfba211562b1a184dabc8076f (diff)
downloadspip-saml-ffe640e1062b3dab21decc37939fb7b8272d82b4.zip
spip-saml-ffe640e1062b3dab21decc37939fb7b8272d82b4.tar.gz
spip-saml-ffe640e1062b3dab21decc37939fb7b8272d82b4.tar.bz2
Fix logout initiated by idp in public part
-rw-r--r--saml_pipelines.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/saml_pipelines.php b/saml_pipelines.php
index e24d607..9202288 100644
--- a/saml_pipelines.php
+++ b/saml_pipelines.php
@@ -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;