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

saml:IdP: More logging of logout messages.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2193 44740490-163a-0410-bde0-09ae8108e29a
parent 33cb78b7
No related branches found
No related tags found
No related merge requests found
...@@ -386,6 +386,8 @@ class sspmod_saml_IdP_SAML2 { ...@@ -386,6 +386,8 @@ class sspmod_saml_IdP_SAML2 {
throw new SimpleSAML_Error_Exception('Missing <Issuer> in LogoutResponse.'); 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(); $relayState = $message->getRelayState();
if (!$message->isSuccess()) { if (!$message->isSuccess()) {
...@@ -402,6 +404,7 @@ class sspmod_saml_IdP_SAML2 { ...@@ -402,6 +404,7 @@ class sspmod_saml_IdP_SAML2 {
} elseif ($message instanceof SAML2_LogoutRequest) { } 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')); SimpleSAML_Logger::stats('saml20-idp-SLO spinit ' . $spEntityId . ' ' . $idpMetadata->getString('entityid'));
$state = array( $state = array(
...@@ -431,6 +434,8 @@ class sspmod_saml_IdP_SAML2 { ...@@ -431,6 +434,8 @@ class sspmod_saml_IdP_SAML2 {
public static function getLogoutURL(SimpleSAML_IdP $idp, array $association, $relayState) { public static function getLogoutURL(SimpleSAML_IdP $idp, array $association, $relayState) {
assert('is_string($relayState) || is_null($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(); $metadata = SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler();
$idpMetadata = $idp->getConfig(); $idpMetadata = $idp->getConfig();
$spMetadata = $metadata->getMetaDataConfig($association['saml:entityID'], 'saml20-sp-remote'); $spMetadata = $metadata->getMetaDataConfig($association['saml:entityID'], 'saml20-sp-remote');
......
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