From ae4f1a7cbb04f10386544c854b3869558cd2fab2 Mon Sep 17 00:00:00 2001
From: Andjelko Horvat <comel@vingd.com>
Date: Wed, 18 May 2011 16:31:27 +0000
Subject: [PATCH] Fix for IdP-first flow logout (issue 397).

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2839 44740490-163a-0410-bde0-09ae8108e29a
---
 lib/SimpleSAML/Auth/Source.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/SimpleSAML/Auth/Source.php b/lib/SimpleSAML/Auth/Source.php
index 3400be1f5..d42d3eef3 100644
--- a/lib/SimpleSAML/Auth/Source.php
+++ b/lib/SimpleSAML/Auth/Source.php
@@ -299,6 +299,9 @@ abstract class SimpleSAML_Auth_Source {
 
 		$data = $session->getData('SimpleSAML_Auth_Source.LogoutCallbacks', $id);
 		if ($data === NULL) {
+			/* FIXME: fix for IdP-first flow (issue 397) -> reevaluate logout callback infrastructure */
+			$session->doLogout($this->authId);
+
 			return;
 		}
 
-- 
GitLab