From c59bf5ae0089c6c117addb755987f3f97edc3354 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Schneider?= Date: Mon, 29 Apr 2013 09:24:29 +0200 Subject: [PATCH] add logout action --- action/logout.php | 58 +++++++++++++++++++++++++++++++++++++++++++ balise/login_saml.php | 1 + 2 files changed, 59 insertions(+) create mode 100644 action/logout.php diff --git a/action/logout.php b/action/logout.php new file mode 100644 index 0000000..ca08ab2 --- /dev/null +++ b/action/logout.php @@ -0,0 +1,58 @@ +logout(generer_url_public('login')); +} +?> diff --git a/balise/login_saml.php b/balise/login_saml.php index 0f44d8d..ea8f44e 100644 --- a/balise/login_saml.php +++ b/balise/login_saml.php @@ -86,6 +86,7 @@ function login_saml_successfull() else { // Logout SAML au cas ou + spip_log("[auth_saml] logout"); $simplesaml->logout(); } }