Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Call out which sections of the current draft of the FTS each template…
Browse files Browse the repository at this point in the history
… is checking for.
  • Loading branch information
iay committed Apr 7, 2013
1 parent 60ebe09 commit 433ec37
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions mdx/_rules/check_uk_trust.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@


<!--
Check for role descriptors with missing KeyDescriptor elements.
-->
FTS 1.4 second draft, section 3.10
Each <IDPSSODescriptor>, <SPSSODescriptor> and <AttributeAuthorityDescriptor>
role descriptor appearing in metadata published by the UK federation SHALL
contain at least one <KeyDescriptor> element.
-->

<xsl:template match="md:IDPSSODescriptor[not(md:KeyDescriptor)]">
<xsl:call-template name="error">
Expand All @@ -46,9 +50,11 @@


<!--
Look for SAML 2.0 IdPs whose metadata includes pure PKIX KeyDescriptor elements.
FTS 1.4 second draft, section 3.10
This causes problems for some OpenAthens SP products.
In roles supporting SAML 2.0 profiles (roles whose protocolSupportEnumeration contains
urn:oasis:names:tc:SAML:2.0:protocol) each <KeyDescriptor> MUST support the direct
key verification scheme as described in section 2.1.1 above.
-->
<xsl:template match="md:IDPSSODescriptor
[contains(@protocolSupportEnumeration, 'urn:oasis:names:tc:SAML:2.0:protocol')]
Expand All @@ -57,6 +63,7 @@
<xsl:with-param name="m">SAML 2.0 IdP has KeyDescriptor without embedded key</xsl:with-param>
</xsl:call-template>
</xsl:template>

<xsl:template match="md:AttributeAuthorityDescriptor
[contains(@protocolSupportEnumeration, 'urn:oasis:names:tc:SAML:2.0:protocol')]
[md:KeyDescriptor[not(descendant::ds:X509Data)]]">
Expand All @@ -65,9 +72,6 @@
</xsl:call-template>
</xsl:template>

<!--
Check for SAML 2.0 SPs with KeyName-only KeyDescriptors.
-->
<xsl:template match="md:SPSSODescriptor
[contains(@protocolSupportEnumeration, 'urn:oasis:names:tc:SAML:2.0:protocol')]
[md:KeyDescriptor[not(descendant::ds:X509Data)]]">
Expand Down

0 comments on commit 433ec37

Please sign in to comment.