From e7e7eec3502ff59d28ed1eca2513d6871873e567 Mon Sep 17 00:00:00 2001 From: Ian Young Date: Thu, 18 Aug 2011 14:04:51 +0000 Subject: [PATCH] Bugzilla 800 Move checks for RequestedAttribute out of the saml2int ruleset into a new ruleset. Even though saml2int probably will say something about this area in the long run (the previous checks were for something I proposed to Andreas that I probably now recant, and which aren't part of the current spec) of necessity the ruleset we use will have to be drawn from a number of different attribute specification sources. This revision of the new ruleset handles the 2008 version of the MACEAttr profile. The new ruleset is, for now, only applied to imported metadata, either as part of registration or as part of metadata exchange. Applying to our own metadata requires that to be cleaned up a little. --- build.xml | 2 + build/check_reqattr.xsl | 321 +++++++++++++++++++++++++++++++++++++++ build/check_saml2int.xsl | 25 --- mdx/validation-beans.xml | 14 ++ 4 files changed, 337 insertions(+), 25 deletions(-) create mode 100644 build/check_reqattr.xsl diff --git a/build.xml b/build.xml index 5391f129..48b09fc6 100644 --- a/build.xml +++ b/build.xml @@ -774,6 +774,7 @@ Imported metadata to ${entities.dir}/imported.xml + Checked. @@ -1173,6 +1174,7 @@ Checking against future rulesets. + diff --git a/build/check_reqattr.xsl b/build/check_reqattr.xsl new file mode 100644 index 00000000..439d3569 --- /dev/null +++ b/build/check_reqattr.xsl @@ -0,0 +1,321 @@ + + + + + + + + + + + + + RequestedAttribute + + lacks NameFormat attribute + (implicitly 'urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified') + + + + + + + + + + + + + + + + + + RequestedAttribute uses OID name + + with SAML 1.x NameFormat: should use urn:mace name or SAML 2.0 NameFormat + + ( + + ) + + + + + + + + + + + + + + + RequestedAttribute uses legacy name + + with SAML 2.0 NameFormat: should use urn:oid name or SAML 1.x NameFormat + + ( + + ) + + + + + + + + + + + + + + + invalid RequestedAttribute Name::NameFormat combination ' + + ' :: ' + + ' + + ( + + ) + + + + + + diff --git a/build/check_saml2int.xsl b/build/check_saml2int.xsl index 10255762..71fb299e 100644 --- a/build/check_saml2int.xsl +++ b/build/check_saml2int.xsl @@ -89,29 +89,4 @@ - - - - - - (X) RequestedAttribute - - lacks NameFormat attribute - - - - - - - (X) RequestedAttribute - - has incorrect NameFormat - - - - - diff --git a/mdx/validation-beans.xml b/mdx/validation-beans.xml index e02ad152..d8b6ae7b 100644 --- a/mdx/validation-beans.xml +++ b/mdx/validation-beans.xml @@ -178,6 +178,19 @@ + + + + + + + + + + @@ -295,6 +308,7 @@ +