From 0dec32bc07cc6a373fa7bdee70ab62c178e58b64 Mon Sep 17 00:00:00 2001
From: Olav Morken <olav.morken@uninett.no>
Date: Wed, 19 Aug 2009 06:15:52 +0000
Subject: [PATCH] saml2_Auth_Source_SP: Add two comments to logout code.

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

diff --git a/modules/saml2/lib/Auth/Source/SP.php b/modules/saml2/lib/Auth/Source/SP.php
index 168d07ac8..530b1bd4f 100644
--- a/modules/saml2/lib/Auth/Source/SP.php
+++ b/modules/saml2/lib/Auth/Source/SP.php
@@ -301,6 +301,7 @@ class sspmod_saml2_Auth_Source_SP extends SimpleSAML_Auth_Source {
 	public function onLogout($idpEntityId) {
 		assert('is_string($idpEntityId)');
 
+		/* Call the logout callback we registered in onProcessingCompleted(). */
 		$this->callLogoutCallback($idpEntityId);
 	}
 
@@ -324,7 +325,9 @@ class sspmod_saml2_Auth_Source_SP extends SimpleSAML_Auth_Source {
 			throw new Exception('Could not find authentication source with id ' . $sourceId);
 		}
 
+		/* Register a callback that we can call if we receive a logout request from the IdP. */
 		$source->addLogoutCallback($idp, $state);
+
 		$state['Attributes'] = $authProcState['Attributes'];
 		SimpleSAML_Auth_Source::completeAuth($state);
 	}
-- 
GitLab