From 28ab883a810fbc0a2d718ba4c3254d61dc853bef Mon Sep 17 00:00:00 2001 From: Phil Smart Date: Tue, 16 Apr 2024 15:11:58 +0100 Subject: [PATCH] Fix check_saml2.xsl From commit hash ukf/ukf-testbed/8b848860a586ebc597596e971dc5844c924b541c See ukf/ukf-meta#416 for details --- mdx/_rules/check_saml2.xsl | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/mdx/_rules/check_saml2.xsl b/mdx/_rules/check_saml2.xsl index 0f1fed85..8ab0d9fb 100644 --- a/mdx/_rules/check_saml2.xsl +++ b/mdx/_rules/check_saml2.xsl @@ -47,9 +47,8 @@ A SAML 2.0 IdP with an AttributeAuthority needs an AttributeService with an appropriate Binding. --> + [contains(@protocolSupportEnumeration, 'urn:oasis:names:tc:SAML:2.0:protocol') and + not(md:AttributeService[@Binding='urn:oasis:names:tc:SAML:2.0:bindings:SOAP'])]"> SAML 2.0 AttributeAuthority missing appropriately bound AttributeService @@ -72,8 +71,8 @@ Use of SAML 2.0 bindings requires SAML 2.0 in protocolSupportEnumeration. --> + [not(contains(@protocolSupportEnumeration, 'urn:oasis:names:tc:SAML:2.0:protocol')) and + md:*/@Binding[starts-with(., 'urn:oasis:names:tc:SAML:2.0:bindings:')]]"> SAML 2.0 binding requires SAML 2.0 token in IDPSSODescriptor/@protocolSupportEnumeration @@ -85,8 +84,8 @@ Use of SAML 2.0 bindings requires SAML 2.0 in protocolSupportEnumeration. --> + [not(contains(@protocolSupportEnumeration, 'urn:oasis:names:tc:SAML:2.0:protocol')) and + md:*/@Binding[starts-with(., 'urn:oasis:names:tc:SAML:2.0:bindings:')]]"> SAML 2.0 binding requires SAML 2.0 token in AttributeAuthorityDescriptor/@protocolSupportEnumeration @@ -98,8 +97,8 @@ Use of SAML 2.0 bindings requires SAML 2.0 in protocolSupportEnumeration. --> + [not(contains(@protocolSupportEnumeration, 'urn:oasis:names:tc:SAML:2.0:protocol')) and + md:*/@Binding[starts-with(., 'urn:oasis:names:tc:SAML:2.0:bindings:')]]"> SAML 2.0 binding requires SAML 2.0 token in SPSSODescriptor/@protocolSupportEnumeration