Skip to content

Commit

Permalink
Enforce index uniqueness on SP ArtifactResolutionService endpoints.
Browse files Browse the repository at this point in the history
  • Loading branch information
iay committed Jan 15, 2016
1 parent 0b802bf commit 782f100
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions mdx/_rules/check_saml2meta.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@
-->

<xsl:template match="md:SPSSODescriptor">

<xsl:variable name="indices" select="md:ArtifactResolutionService/@index"/>
<xsl:variable name="distinct.indices" select="set:distinct($indices)"/>
<xsl:if test="count($indices) != count($distinct.indices)">
<xsl:call-template name="error">
<xsl:with-param name="m">ArtifactResolutionService index values not all different</xsl:with-param>
</xsl:call-template>
</xsl:if>

<xsl:variable name="indices" select="md:AssertionConsumerService/@index"/>
<xsl:variable name="distinct.indices" select="set:distinct($indices)"/>
<xsl:if test="count($indices) != count($distinct.indices)">
Expand Down

0 comments on commit 782f100

Please sign in to comment.