Skip to content

Commit

Permalink
Look for SAML 2.0 IdPs which have PKIX-style KeyDescriptors.
Browse files Browse the repository at this point in the history
  • Loading branch information
iay committed Jul 11, 2012
1 parent 65a1262 commit 3343bd6
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions mdx/check_future_0.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,22 @@
-->
<xsl:import href="../build/check_framework.xsl"/>

<!--
Look for SAML 2.0 IdPs whose metadata includes pure PKIX KeyDescriptor elements.
-->
<xsl:template match="md:IDPSSODescriptor
[contains(@protocolSupportEnumeration, 'urn:oasis:names:tc:SAML:2.0:protocol')]
[md:KeyDescriptor[not(descendant::ds:X509Data)]]">
<xsl:call-template name="error">
<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)]]">
<xsl:call-template name="error">
<xsl:with-param name="m">SAML 2.0 AttributeAuthority has KeyDescriptor without embedded key</xsl:with-param>
</xsl:call-template>
</xsl:template>

</xsl:stylesheet>

0 comments on commit 3343bd6

Please sign in to comment.