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

Commit

Permalink
Verify that all registered entities have a UKFederationMember label
Browse files Browse the repository at this point in the history
  • Loading branch information
iay committed Sep 13, 2016
1 parent baaef4d commit 5d6a91b
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mdx/uk/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,12 @@
p:XSLResource="classpath:uk/check_uk_mdrps.xsl"/>


<!--
check_uk_member
-->
<bean id="check_uk_member" parent="XSLValidationStage"
p:XSLResource="classpath:uk/check_uk_member.xsl"/>

<!--
check_uk_urlenc
-->
Expand Down Expand Up @@ -332,6 +338,7 @@
<ref bean="check_uk_keydesc_key"/>
<ref bean="check_uk_mdattr"/>
<ref bean="check_uk_mdrps"/>
<ref bean="check_uk_member"/>
<ref bean="check_uk_urlenc"/>
<ref bean="mdui_dn_en_present"/>
<ref bean="mdui_dn_en_match"/>
Expand Down
32 changes: 32 additions & 0 deletions mdx/uk/check_uk_member.xsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
check_uk_member.xsl
UKf-specific check that an entity has a UKFederationMember label.
Author: Ian A. Young <ian@iay.org.uk>
-->
<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:shibmd="urn:mace:shibboleth:metadata:1.0"
xmlns:ukfedlabel="http://ukfederation.org.uk/2006/11/label"
xmlns="urn:oasis:names:tc:SAML:2.0:metadata">

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


<xsl:template match="md:EntityDescriptor/md:Extensions[not(ukfedlabel:UKFederationMember)]">
<xsl:call-template name="error">
<xsl:with-param name="m">entity does not have a UKFederationMember label</xsl:with-param>
</xsl:call-template>
</xsl:template>


</xsl:stylesheet>

0 comments on commit 5d6a91b

Please sign in to comment.