-
Notifications
You must be signed in to change notification settings - Fork 29
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
Empty reference URI for enveloped signature #10
Comments
I am OK with us taking that as a change, feel free to submit a PR, absent that we can look at this when we get time. |
@rmhrisk i think that there is bug on this. If you set uri : "" in the ReferenceOptions, the code produced doesn't have the empty uri attribute. I'm trying to find where i can fix it, but i don't find the where. Can you point me. |
@gine xmldsig has default value for Reference.Uri URI is optional value in xmldsig XSD You can recompile xmdsig.js file and remove defaultValue from XmlAttribute decorator |
@microshine it seems intuitive that setting uri : "" in the ReferenceOptions would produce a value of "" and nul an empty one? Is that right? |
@rmhrisk I think so. I'll update library |
@gine I updated xmldsig. I can't publish it, cause it have some
If |
I made a stupid fix. I presume that your fix is better. Tomorrow i'll try it |
Hello. I wanted to try the new version but i won't install properly. |
@Ameb I added |
Thank you! Nice to have |
@Ameb I'll fix |
I was using this library for signing xml using the following: -
Signed XML is verified by vendor and they need empty URI or signature verification fails.
https://www.w3.org/TR/xmldsig-core/#sec-URI says
I believe we should default to empty URI in case of enveloped signature and should make it possible to omit only by choice.
The text was updated successfully, but these errors were encountered: