Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InclusiveNamespaces how to include inclusivenamespace #138

Closed
SSANSH opened this issue Jul 17, 2017 · 2 comments · Fixed by #284
Closed

InclusiveNamespaces how to include inclusivenamespace #138

SSANSH opened this issue Jul 17, 2017 · 2 comments · Fixed by #284

Comments

@SSANSH
Copy link

SSANSH commented Jul 17, 2017

Hi, How I can generate transform definition like with InclusiveNamespaces.

<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
   <InclusiveNamespaces xmlns="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="oas v1 v11"/>
 </ds:Transform>

I checked the function SignedXml.prototype.createReferences but I don't see the way to include this definition.

  res += "<" + prefix + "Transforms>"
  for (var t in ref.transforms) {
    if (!ref.transforms.hasOwnProperty(t)) continue;

    var trans = ref.transforms[t]
    var transform = this.findCanonicalizationAlgorithm(trans)
    res += "<" + prefix + "Transform Algorithm=\"" + transform.getAlgorithmName() + "\"/>";
  }

Can you explain how to do and if its doable?

Thanks.

@tngan
Copy link
Contributor

tngan commented Jul 19, 2017

#94

@SSANSH checkout this one and you could find out the workaround as well

@shunkica
Copy link
Contributor

@SSANSH did you ever figure it out?

I am parsing the signed document back to a xml doc and then manually adding the InclusiveNamespaces to ds:CanonicalizationMethod and ds:Transform but this is a very hacky approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants