Skip to content

Commit b839cab

Browse files
committed
SAML2: Log encryption/decryption of NameID in LogoutRequest and Assertiion.
git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2746 44740490-163a-0410-bde0-09ae8108e29a
1 parent e0a361b commit b839cab

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

lib/SAML2/Assertion.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -624,6 +624,7 @@ public function decryptNameId(XMLSecurityKey $key) {
624624
}
625625

626626
$nameId = SAML2_Utils::decryptElement($this->encryptedNameId, $key);
627+
SimpleSAML_Utilities::debugMessage($nameId, 'decrypt');
627628
$this->nameId = SAML2_Utils::parseNameId($nameId);
628629

629630
$this->encryptedNameId = NULL;

lib/SAML2/LogoutRequest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ public function encryptNameId(XMLSecurityKey $key) {
9999
SAML2_Utils::addNameId($root, $this->nameId);
100100
$nameId = $root->firstChild;
101101

102+
SimpleSAML_Utilities::debugMessage($nameId, 'encrypt');
102103

103104
/* Encrypt the NameID. */
104105
$enc = new XMLSecEnc();
@@ -127,6 +128,7 @@ public function decryptNameId(XMLSecurityKey $key) {
127128
}
128129

129130
$nameId = SAML2_Utils::decryptElement($this->encryptedNameId, $key);
131+
SimpleSAML_Utilities::debugMessage($nameId, 'decrypt');
130132
$this->nameId = SAML2_Utils::parseNameId($nameId);
131133

132134
$this->encryptedNameId = NULL;

0 commit comments

Comments
 (0)