Skip to content

Commit

Permalink
"Future" check looking for a signing certificate on SAML 2.0 IdP role…
Browse files Browse the repository at this point in the history
…s, as some SAML 2.0 SP software does not support PKIX.
  • Loading branch information
iay committed May 17, 2012
1 parent e7a45d5 commit 59fc695
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion mdx/check_future_0.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,21 @@
-->
<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 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 signing key</xsl:with-param>
</xsl:call-template>
</xsl:template>

</xsl:stylesheet>

0 comments on commit 59fc695

Please sign in to comment.