From 27579dcef463cc1a9b57bb909a15dbed016e8140 Mon Sep 17 00:00:00 2001 From: Olav Morken <olav.morken@uninett.no> Date: Mon, 1 Mar 2010 10:35:35 +0000 Subject: [PATCH] saml:IdP: More logging of logout messages. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2193 44740490-163a-0410-bde0-09ae8108e29a --- modules/saml/lib/IdP/SAML2.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/saml/lib/IdP/SAML2.php b/modules/saml/lib/IdP/SAML2.php index 42c8a54f0..3bc86a6fd 100644 --- a/modules/saml/lib/IdP/SAML2.php +++ b/modules/saml/lib/IdP/SAML2.php @@ -386,6 +386,8 @@ class sspmod_saml_IdP_SAML2 { throw new SimpleSAML_Error_Exception('Missing <Issuer> in LogoutResponse.'); } + SimpleSAML_Logger::info('Received SAML 2.0 LogoutResponse from: '. var_export($spEntityId, TRUE)); + $relayState = $message->getRelayState(); if (!$message->isSuccess()) { @@ -402,6 +404,7 @@ class sspmod_saml_IdP_SAML2 { } elseif ($message instanceof SAML2_LogoutRequest) { + SimpleSAML_Logger::info('Received SAML 2.0 LogoutRequest from: '. var_export($spEntityId, TRUE)); SimpleSAML_Logger::stats('saml20-idp-SLO spinit ' . $spEntityId . ' ' . $idpMetadata->getString('entityid')); $state = array( @@ -431,6 +434,8 @@ class sspmod_saml_IdP_SAML2 { public static function getLogoutURL(SimpleSAML_IdP $idp, array $association, $relayState) { assert('is_string($relayState) || is_null($relayState)'); + SimpleSAML_Logger::info('Sending SAML 2.0 LogoutRequest to: '. var_export($association['saml:entityID'], TRUE)); + $metadata = SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler(); $idpMetadata = $idp->getConfig(); $spMetadata = $metadata->getMetaDataConfig($association['saml:entityID'], 'saml20-sp-remote'); -- GitLab