diff options
author | Leif Johansson <leifj@sunet.se> | 2015-10-22 12:16:35 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2015-10-22 12:16:35 +0200 |
commit | 388ca8f34b980c8697b6b0dbdda2b118ffe6b8b2 (patch) | |
tree | c6b5868d340ceb2b6ae0d22c2481162159e7804f /xslt | |
parent | 5761571f285edd2153b685bba7ec6e2abce0c04f (diff) |
no saml-md-tool, generate signatures with non-empty Reference@ID
Diffstat (limited to 'xslt')
-rw-r--r-- | xslt/normalize.xsl | 1 | ||||
-rw-r--r-- | xslt/sign.xsl | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/xslt/normalize.xsl b/xslt/normalize.xsl index 2ae8a1e1..9ac9cc61 100644 --- a/xslt/normalize.xsl +++ b/xslt/normalize.xsl @@ -31,6 +31,7 @@ If You do not accept these Terms, then You must not continue to use this Metadat </xsl:comment></xsl:if> <md:EntitiesDescriptor> + <xsl:attribute name="ID"><xsl:value-of select="$ID"/></xsl:attribute> <xsl:attribute name="Name"><xsl:value-of select="@Name"/></xsl:attribute> <xsl:if test="@cacheDuration"> <xsl:attribute name="cacheDuration"><xsl:value-of select="@cacheDuration"/></xsl:attribute> diff --git a/xslt/sign.xsl b/xslt/sign.xsl index 19aa9c55..c0e04ab5 100644 --- a/xslt/sign.xsl +++ b/xslt/sign.xsl @@ -18,7 +18,8 @@ <ds:SignedInfo> <ds:CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /> <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /> - <ds:Reference URI=""> + <ds:Reference> + <xsl:attribute name="URI"><xsl:text>#</xsl:text><xsl:value-of select="@ID"/></xsl:attribute> <ds:Transforms> <ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/> <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#WithComments"/> |