-
Notifications
You must be signed in to change notification settings - Fork 173
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
Custom KeyInfo, avoid adding empty/unneeded namespaces #170
Comments
I could create a PR, but not sure about the best method. Maybe |
There is a bigger reason to this - namespace propagation in xmldom does not appear to work correctly, see examples of this in jindw/xmldom#247. I would suggest following up there in addition to the PR you have submitted, but it seems that the package is no longer actively maintained, and I already have too much on my hands tending to this package. |
Are there sections of the XML signature spec that address the correct behavior here? |
I'm trying to create a custom KeyInfo. This mostly works with something like this:
This is the result:
The problem is that the prefix wsu and wsse is added here.
This is not needed because the namespaces are already defined outside the signature.
Is there a way to prevent adding these namespaces?
I guess this happens because the signature is parsed as a separate document?
var signatureDoc = new Dom().parseFromString(this.signatureXml)
The text was updated successfully, but these errors were encountered: