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

Commit

Permalink
Policy rule 4: IdPs must implement SAML 2 HTTP-Redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
iay committed Dec 22, 2015
1 parent e04e6d0 commit c696ea1
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
29 changes: 29 additions & 0 deletions mdx/incommon/check_idp_no_saml2.xsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
check_idp_no_saml2.xsl
-->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata"
xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"
xmlns:shibmd="urn:mace:shibboleth:metadata:1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:idpdisc="urn:oasis:names:tc:SAML:profiles:SSO:idp-discovery-protocol"
xmlns="urn:oasis:names:tc:SAML:2.0:metadata">

<!--
Common support functions.
-->
<xsl:import href="../_rules/check_framework.xsl"/>

<xsl:template match="md:IDPSSODescriptor
[not(md:SingleSignOnService[@Binding='urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect'])]">
<xsl:call-template name="error">
<xsl:with-param name="m">IdP does not support the SAML 2 HTTP-Redirect binding</xsl:with-param>
</xsl:call-template>
</xsl:template>

</xsl:stylesheet>
9 changes: 9 additions & 0 deletions mdx/incommon/edugain-policy.xml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,15 @@
</property>
</bean>

<!--
Technical Policy rule 4.
Filter all imported IdP entities that do not have a SAML2 SingleSignOnService endpoint
that supports the HTTP-Redirect binding.
-->
<bean id="check_idp_non_saml2" parent="XSLValidationStage"
p:XSLResource="classpath:incommon/check_idp_no_saml2.xsl"/>

<!--
Technical Policy rule 6.
Expand Down

0 comments on commit c696ea1

Please sign in to comment.