Skip to content

Commit

Permalink
Handle <init:RequestInitiator> elements from the OASIS SAML TC Servic…
Browse files Browse the repository at this point in the history
…e Provider Request Initiation Protocol and Profile Version 1.0, Committee Specification 01, 5 November 2010.
  • Loading branch information
iay committed Dec 15, 2010
1 parent 94b472f commit ec95ad3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
5 changes: 5 additions & 0 deletions build/check_namespaces.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
xmlns:elab="http://eduserv.org.uk/labels"
xmlns:idpdisc="urn:oasis:names:tc:SAML:profiles:SSO:idp-discovery-protocol"
xmlns:init="urn:oasis:names:tc:SAML:profiles:SSO:request-init"
xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata"
xmlns:mdui="urn:oasis:names:tc:SAML:metadata:ui"
xmlns:shibmd="urn:mace:shibboleth:metadata:1.0"
Expand Down Expand Up @@ -43,6 +44,10 @@
<xsl:apply-templates/>
</xsl:template>

<xsl:template match="init:*">
<xsl:apply-templates/>
</xsl:template>

<xsl:template match="md:*">
<xsl:apply-templates/>
</xsl:template>
Expand Down
16 changes: 15 additions & 1 deletion build/import.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
xmlns:idpdisc="urn:oasis:names:tc:SAML:profiles:SSO:idp-discovery-protocol"
xmlns:init="urn:oasis:names:tc:SAML:profiles:SSO:request-init"
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"
Expand All @@ -39,7 +40,7 @@

xmlns:xalan="http://xml.apache.org/xalan"

exclude-result-prefixes="idpdisc md xalan"
exclude-result-prefixes="idpdisc init md xalan"

xmlns="urn:oasis:names:tc:SAML:2.0:metadata">

Expand All @@ -60,6 +61,7 @@
<EntityDescriptor ID="uk000000_CHANGE_THIS"
xsi:schemaLocation="urn:oasis:names:tc:SAML:2.0:metadata sstc-saml-schema-metadata-2.0.xsd
urn:oasis:names:tc:SAML:metadata:ui ../xml/sstc-saml-metadata-ui-v1.0.xsd
urn:oasis:names:tc:SAML:profiles:SSO:request-init ../xml/sstc-request-initiation.xsd
urn:mace:shibboleth:metadata:1.0 shibboleth-metadata-1.0.xsd
http://ukfederation.org.uk/2006/11/label uk-fed-label.xsd
http://www.w3.org/2001/04/xmlenc# xenc-schema.xsd
Expand Down Expand Up @@ -490,6 +492,18 @@
</xsl:template>


<!--
init:RequestInitiator
Normalise namespace prefix.
-->
<xsl:template match="init:RequestInitiator">
<init:RequestInitiator>
<xsl:apply-templates select="node()|@*"/>
</init:RequestInitiator>
</xsl:template>


<!--
shibmd:Scope
Expand Down

0 comments on commit ec95ad3

Please sign in to comment.