From 549c57ddef9811124b88712ce0bc42e15c224e66 Mon Sep 17 00:00:00 2001 From: Alejandro Blanco Date: Thu, 17 Oct 2013 12:11:24 +0200 Subject: [PATCH] Enforce that KeyDescriptor nodes appear before NameIDFormat ones Inside a SSO, the KeyDescriptor must appear in the XML tree before the NameIDFormat nodes. --- samlmetajs/samlmeta.xml.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/samlmetajs/samlmeta.xml.js b/samlmetajs/samlmeta.xml.js index 645adfe..3cc3586 100644 --- a/samlmetajs/samlmeta.xml.js +++ b/samlmetajs/samlmeta.xml.js @@ -244,7 +244,8 @@ SAMLmetaJS.xmlupdater = function(xmlstring) { [ {'localName': 'SingleLogoutService', 'namespaceURI': SAMLmetaJS.Constants.ns.md}, {'localName': 'AssertionConsumerService', 'namespaceURI': SAMLmetaJS.Constants.ns.md}, - {'localName': 'AttributeConsumingService', 'namespaceURI': SAMLmetaJS.Constants.ns.md} + {'localName': 'AttributeConsumingService', 'namespaceURI': SAMLmetaJS.Constants.ns.md}, + {'localName': 'NameIDFormat', 'namespaceURI': SAMLmetaJS.Constants.ns.md} ] ));