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
No related branches found
No related tags found
No related merge requests found
...@@ -624,6 +624,7 @@ class SAML2_Assertion implements SAML2_SignedElement { ...@@ -624,6 +624,7 @@ class SAML2_Assertion implements SAML2_SignedElement {
} }
$nameId = SAML2_Utils::decryptElement($this->encryptedNameId, $key); $nameId = SAML2_Utils::decryptElement($this->encryptedNameId, $key);
SimpleSAML_Utilities::debugMessage($nameId, 'decrypt');
$this->nameId = SAML2_Utils::parseNameId($nameId); $this->nameId = SAML2_Utils::parseNameId($nameId);
$this->encryptedNameId = NULL; $this->encryptedNameId = NULL;
......
...@@ -99,6 +99,7 @@ class SAML2_LogoutRequest extends SAML2_Request { ...@@ -99,6 +99,7 @@ class SAML2_LogoutRequest extends SAML2_Request {
SAML2_Utils::addNameId($root, $this->nameId); SAML2_Utils::addNameId($root, $this->nameId);
$nameId = $root->firstChild; $nameId = $root->firstChild;
SimpleSAML_Utilities::debugMessage($nameId, 'encrypt');
/* Encrypt the NameID. */ /* Encrypt the NameID. */
$enc = new XMLSecEnc(); $enc = new XMLSecEnc();
...@@ -127,6 +128,7 @@ class SAML2_LogoutRequest extends SAML2_Request { ...@@ -127,6 +128,7 @@ class SAML2_LogoutRequest extends SAML2_Request {
} }
$nameId = SAML2_Utils::decryptElement($this->encryptedNameId, $key); $nameId = SAML2_Utils::decryptElement($this->encryptedNameId, $key);
SimpleSAML_Utilities::debugMessage($nameId, 'decrypt');
$this->nameId = SAML2_Utils::parseNameId($nameId); $this->nameId = SAML2_Utils::parseNameId($nameId);
$this->encryptedNameId = NULL; $this->encryptedNameId = NULL;
......
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