Skip to content
Snippets Groups Projects
Commit 0dec32bc authored by Olav Morken's avatar Olav Morken
Browse files

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
parent b9e02f34
No related branches found
No related tags found
No related merge requests found
...@@ -301,6 +301,7 @@ class sspmod_saml2_Auth_Source_SP extends SimpleSAML_Auth_Source { ...@@ -301,6 +301,7 @@ class sspmod_saml2_Auth_Source_SP extends SimpleSAML_Auth_Source {
public function onLogout($idpEntityId) { public function onLogout($idpEntityId) {
assert('is_string($idpEntityId)'); assert('is_string($idpEntityId)');
/* Call the logout callback we registered in onProcessingCompleted(). */
$this->callLogoutCallback($idpEntityId); $this->callLogoutCallback($idpEntityId);
} }
...@@ -324,7 +325,9 @@ class sspmod_saml2_Auth_Source_SP extends SimpleSAML_Auth_Source { ...@@ -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); 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); $source->addLogoutCallback($idp, $state);
$state['Attributes'] = $authProcState['Attributes']; $state['Attributes'] = $authProcState['Attributes'];
SimpleSAML_Auth_Source::completeAuth($state); SimpleSAML_Auth_Source::completeAuth($state);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment