From dbd4cfed65d5afd8b17f80ce87ded46a5b244974 Mon Sep 17 00:00:00 2001 From: Mads Freek Petersen <freek@wayf.dk> Date: Mon, 14 Jul 2008 09:59:25 +0000 Subject: [PATCH] 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 --- lib/SimpleSAML/Bindings/SAML20/HTTPPost.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/SimpleSAML/Bindings/SAML20/HTTPPost.php b/lib/SimpleSAML/Bindings/SAML20/HTTPPost.php index 95792d757..71ceba798 100644 --- a/lib/SimpleSAML/Bindings/SAML20/HTTPPost.php +++ b/lib/SimpleSAML/Bindings/SAML20/HTTPPost.php @@ -133,6 +133,8 @@ class SimpleSAML_Bindings_SAML20_HTTPPost { $firstassertionroot->parentNode->replaceChild($encryptedassertion, $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->setNode($firstassertionroot); -- GitLab