Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
iay committed May 23, 2016
2 parents 708df33 + 24d59de commit a78d734
Show file tree
Hide file tree
Showing 6 changed files with 248 additions and 220 deletions.
29 changes: 29 additions & 0 deletions mdx/_rules/check_shib_noregscope.xsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
check_shib_noregscope.xsl
Check for Shibboleth Scope elements lacking a regexp attribute, which can cause
problems with signature generation and validation because the schema includes
a default value.
-->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata"
xmlns:shibmd="urn:mace:shibboleth:metadata:1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="urn:oasis:names:tc:SAML:2.0:metadata">

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

<xsl:template match="shibmd:Scope[not(@regexp)]">
<xsl:call-template name="error">
<xsl:with-param name="m">Scope <xsl:value-of select="."/> lacks @regexp</xsl:with-param>
</xsl:call-template>
</xsl:template>

</xsl:stylesheet>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
check_regscope.xsl
check_shib_regscope.xsl
Check for the presence of Shibboleth Scope elements containing regular expressions.
Expand Down
12 changes: 0 additions & 12 deletions mdx/_rules/check_shibboleth.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -148,18 +148,6 @@
<xsl:with-param name="m">SIDPO-34: Attribute lacking NameFormat in IDPSSODescriptor</xsl:with-param>
</xsl:call-template>
</xsl:template>


<!--
Check for Shibboleth Scope elements that don't include a regexp attribute.
This has a default in the schema so omitting it can cause signing brittleness.
-->
<xsl:template match="shibmd:Scope[not(@regexp)]">
<xsl:call-template name="error">
<xsl:with-param name="m">Scope <xsl:value-of select="."/> lacks @regexp</xsl:with-param>
</xsl:call-template>
</xsl:template>


<!--
Scope elements should not contain space characters.
Expand Down
5 changes: 4 additions & 1 deletion mdx/common-beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1171,7 +1171,10 @@
<ref bean="trimImportElementWhitespace"/>
<ref bean="stripEmptyExtensions"/>
<ref bean="checkSchemas"/>
<ref bean="CHECK_imported"/>
<ref bean="CHECK_std"/>
<ref bean="check_dup_display"/>
<ref bean="check_shib_regscope"/>
<ref bean="check_namespaces"/>

<bean id="checkCertificates" parent="X509ValidationStage">
<property name="validators">
Expand Down
1 change: 1 addition & 0 deletions mdx/uk/verbs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@
<ref bean="check_saml2"/>
<ref bean="check_saml2int"/>
<!-- <ref bean="check_saml2meta"/> -->
<ref bean="check_shib_noregscope"/>
<ref bean="check_shibboleth"/>
<ref bean="check_sp_tls"/>
<ref bean="check_uk_trust"/>
Expand Down
Loading

0 comments on commit a78d734

Please sign in to comment.