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

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
parent e0a361b5
Branches
Tags
No related merge requests found
......@@ -624,6 +624,7 @@ class SAML2_Assertion implements SAML2_SignedElement {
}
$nameId = SAML2_Utils::decryptElement($this->encryptedNameId, $key);
SimpleSAML_Utilities::debugMessage($nameId, 'decrypt');
$this->nameId = SAML2_Utils::parseNameId($nameId);
$this->encryptedNameId = NULL;
......
......@@ -99,6 +99,7 @@ class SAML2_LogoutRequest extends SAML2_Request {
SAML2_Utils::addNameId($root, $this->nameId);
$nameId = $root->firstChild;
SimpleSAML_Utilities::debugMessage($nameId, 'encrypt');
/* Encrypt the NameID. */
$enc = new XMLSecEnc();
......@@ -127,6 +128,7 @@ class SAML2_LogoutRequest extends SAML2_Request {
}
$nameId = SAML2_Utils::decryptElement($this->encryptedNameId, $key);
SimpleSAML_Utilities::debugMessage($nameId, 'decrypt');
$this->nameId = SAML2_Utils::parseNameId($nameId);
$this->encryptedNameId = NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment