Skip to content

Commit

Permalink
Promote saml2int check that all SAML 2.0 IdPs have embedded key mater…
Browse files Browse the repository at this point in the history
…ial to production.
  • Loading branch information
iay committed Jul 9, 2012
1 parent a24d6ee commit 6ebce15
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 17 deletions.
23 changes: 23 additions & 0 deletions build/check_saml2int.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,27 @@
</xsl:call-template>
</xsl:template>

<!--
Section 9.1
Responses MUST be signed, so appropriate IdP roles MUST include embedded key material
suitable for signing those responses.
-->
<xsl:template match="md:IDPSSODescriptor
[contains(@protocolSupportEnumeration, 'urn:oasis:names:tc:SAML:2.0:protocol')]
[not(md:KeyDescriptor[descendant::ds:X509Data][@use='signing'])]
[not(md:KeyDescriptor[descendant::ds:X509Data][not(@use)])]">
<xsl:call-template name="error">
<xsl:with-param name="m">SAML 2.0 IdP has no embedded signing key</xsl:with-param>
</xsl:call-template>
</xsl:template>
<xsl:template match="md:AttributeAuthorityDescriptor
[contains(@protocolSupportEnumeration, 'urn:oasis:names:tc:SAML:2.0:protocol')]
[not(md:KeyDescriptor[descendant::ds:X509Data][@use='signing'])]
[not(md:KeyDescriptor[descendant::ds:X509Data][not(@use)])]">
<xsl:call-template name="error">
<xsl:with-param name="m">SAML 2.0 AttributeAuthority has no embedded signing key</xsl:with-param>
</xsl:call-template>
</xsl:template>

</xsl:stylesheet>
17 changes: 0 additions & 17 deletions mdx/check_future_0.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,4 @@
-->
<xsl:import href="../build/check_framework.xsl"/>

<xsl:template match="md:IDPSSODescriptor
[contains(@protocolSupportEnumeration, 'urn:oasis:names:tc:SAML:2.0:protocol')]
[not(md:KeyDescriptor[descendant::ds:X509Data][@use='signing'])]
[not(md:KeyDescriptor[descendant::ds:X509Data][not(@use)])]">
<xsl:call-template name="error">
<xsl:with-param name="m">SAML 2.0 IdP has no embedded signing key</xsl:with-param>
</xsl:call-template>
</xsl:template>
<xsl:template match="md:AttributeAuthorityDescriptor
[contains(@protocolSupportEnumeration, 'urn:oasis:names:tc:SAML:2.0:protocol')]
[not(md:KeyDescriptor[descendant::ds:X509Data][@use='signing'])]
[not(md:KeyDescriptor[descendant::ds:X509Data][not(@use)])]">
<xsl:call-template name="error">
<xsl:with-param name="m">SAML 2.0 AttributeAuthority has no embedded signing key</xsl:with-param>
</xsl:call-template>
</xsl:template>

</xsl:stylesheet>

0 comments on commit 6ebce15

Please sign in to comment.