From b2cb5fe9ac4dc139ed9b092f3cb56526f31047f1 Mon Sep 17 00:00:00 2001 From: Ian Young Date: Wed, 24 Aug 2011 11:25:20 +0000 Subject: [PATCH] Refactor into templates based on the NameFormat so there is less overlapping of conditions. This is probably faster, but more to the point ends up a lot simpler. --- build/check_reqattr.xsl | 501 ++++++++++++++++++++-------------------- 1 file changed, 254 insertions(+), 247 deletions(-) diff --git a/build/check_reqattr.xsl b/build/check_reqattr.xsl index 439d3569..4c663af6 100644 --- a/build/check_reqattr.xsl +++ b/build/check_reqattr.xsl @@ -4,7 +4,12 @@ check_reqattr.xsl Checking ruleset for RequestedAttribute elements in SAML 2.0 metadata. - + + The main check being performed here is that the Name and NameFormat attributes + of a RequestedAttribute element together designate a real SAML attribute, either + explicitly or implicitly covered by some specification. Other combinations + of Name+NameFormat are presumptively erroneous. + Author: Ian A. Young --> @@ -51,147 +56,16 @@ - - - - - - - - - + - RequestedAttribute uses OID name - - with SAML 1.x NameFormat: should use urn:mace name or SAML 2.0 NameFormat + RequestedAttribute uses NameFormat of + + : unsuitable for cross-domain use ( @@ -200,122 +74,255 @@ - - - - - - + + - - - RequestedAttribute uses legacy name - - with SAML 2.0 NameFormat: should use urn:oid name or SAML 1.x NameFormat - - ( - - ) - - - + [@NameFormat='urn:mace:shibboleth:1.0:attributeNamespace:uri']"> + + + + + + + + + + + + + + + + + + + + + + RequestedAttribute uses OID name + + with SAML 1.x NameFormat: should use urn:mace name or SAML 2.0 NameFormat + + ( + + ) + + + + + + + + + + + + + + + RequestedAttribute uses unknown name + + with SAML 1.x NameFormat + + ( + + ) + + + + + + - + - + [@NameFormat='urn:oasis:names:tc:SAML:2.0:attrname-format:uri']"> + - - - - - invalid RequestedAttribute Name::NameFormat combination ' - - ' :: ' - - ' - - ( - - ) - - - + + + + + RequestedAttribute uses legacy MACEAttr name + + with SAML 2.0 NameFormat: should use urn:oid name or SAML 1.x NameFormat + + ( + + ) + + + + + + + + + + + + + + + + RequestedAttribute uses unknown name + + with SAML 2.0 NameFormat + + ( + + ) + + + + + + - +