Skip to content
Snippets Groups Projects
Commit dbd4cfed authored by Mads Freek Petersen's avatar Mads Freek Petersen
Browse files

Added namespace declarations to the assertion to allow decryption without an...

Added namespace declarations to the assertion to allow decryption without an artificial enclosing element.
Shouldn't break anything but is needed for consumers based on Apache XML Sec lib.


git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@784 44740490-163a-0410-bde0-09ae8108e29a
parent 2fbb0839
No related branches found
No related tags found
No related merge requests found
...@@ -133,6 +133,8 @@ class SimpleSAML_Bindings_SAML20_HTTPPost { ...@@ -133,6 +133,8 @@ class SimpleSAML_Bindings_SAML20_HTTPPost {
$firstassertionroot->parentNode->replaceChild($encryptedassertion, $firstassertionroot); $firstassertionroot->parentNode->replaceChild($encryptedassertion, $firstassertionroot);
$encryptedassertion->appendChild($firstassertionroot); $encryptedassertion->appendChild($firstassertionroot);
$firstassertionroot->setAttribute("xmlns:saml", "urn:oasis:names:tc:SAML:2.0:assertion");
$firstassertionroot->setAttribute("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance");
$enc = new XMLSecEnc(); $enc = new XMLSecEnc();
$enc->setNode($firstassertionroot); $enc->setNode($firstassertionroot);
......
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