Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Promote check for saml2int section 6.1.
Browse files Browse the repository at this point in the history
Look for metadata for a SingleSignOnService with HTTP-Redirect binding
on a SAML 2 IdP.
  • Loading branch information
iay committed May 22, 2015
1 parent f63653a commit 63c86df
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
17 changes: 0 additions & 17 deletions mdx/_rules/check_future_0.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,4 @@
-->
<xsl:import href="check_framework.xsl"/>

<!--
Section 6.1.
"The <saml2p:AuthnRequest> message issued by a Service Provider MUST be
communicated to the Identity Provider using the HTTP-REDIRECT binding
[SAML2Bind]."
Therefore, metadata for this binding MUST be present.
-->
<xsl:template match="md:IDPSSODescriptor
[contains(@protocolSupportEnumeration, 'urn:oasis:names:tc:SAML:2.0:protocol')]
[not(md:SingleSignOnService[@Binding='urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect'])]">
<xsl:call-template name="error">
<xsl:with-param name="m">SAML 2.0 IDPSSODescriptor does not support HTTP-Redirect SSO binding</xsl:with-param>
</xsl:call-template>
</xsl:template>

</xsl:stylesheet>
17 changes: 17 additions & 0 deletions mdx/_rules/check_saml2int.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,23 @@
</xsl:call-template>
</xsl:template>

<!--
Section 6.1.
"The <saml2p:AuthnRequest> message issued by a Service Provider MUST be
communicated to the Identity Provider using the HTTP-REDIRECT binding
[SAML2Bind]."
Therefore, metadata for this binding MUST be present.
-->
<xsl:template match="md:IDPSSODescriptor
[contains(@protocolSupportEnumeration, 'urn:oasis:names:tc:SAML:2.0:protocol')]
[not(md:SingleSignOnService[@Binding='urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect'])]">
<xsl:call-template name="error">
<xsl:with-param name="m">SAML 2.0 IDPSSODescriptor does not support HTTP-Redirect SSO binding</xsl:with-param>
</xsl:call-template>
</xsl:template>

<!--
Section 7.
Expand Down

0 comments on commit 63c86df

Please sign in to comment.