Skip to content

Commit

Permalink
Add future check for multiple SLO elements with the same Binding.
Browse files Browse the repository at this point in the history
See ukf/ukf-meta#155
  • Loading branch information
Alex Stuart committed Feb 27, 2018
1 parent 2bebbc1 commit 21d9320
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions mdx/_rules/check_future_1.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,31 @@
-->
<xsl:import href="check_framework.xsl"/>

<!--
It does not make sense for an IdP to have more than one SingleLogoutService
with any of a list of SAML 2.0 front-channel bindings.
See ukf/ukf-meta#155
-->
<xsl:template match="md:SingleLogoutService[@Binding='urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST'][position()>1]">
<xsl:call-template name="error">
<xsl:with-param name="m">more than one SingleLogoutService with SAML 2.0 HTTP-POST binding</xsl:with-param>
</xsl:call-template>
</xsl:template>

<xsl:template match="md:SingleLogoutService[@Binding='urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST-SimpleSign'][position()>1]">
<xsl:call-template name="error">
<xsl:with-param name="m">more than one SingleLogoutService with SAML 2.0 HTTP-POST-SimpleSign binding</xsl:with-param>
</xsl:call-template>
</xsl:template>

<xsl:template match="md:SingleLogoutService[@Binding='urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect'][position()>1]">
<xsl:call-template name="error">
<xsl:with-param name="m">more than one SingleLogoutService with SAML 2.0 HTTP-Redirect binding</xsl:with-param>
</xsl:call-template>
</xsl:template>


</xsl:stylesheet>

0 comments on commit 21d9320

Please sign in to comment.