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

How to add InclusiveNamespaces in Signature #228

Closed
lostvicking opened this issue Apr 12, 2021 · 0 comments · Fixed by #284
Closed

How to add InclusiveNamespaces in Signature #228

lostvicking opened this issue Apr 12, 2021 · 0 comments · Fixed by #284

Comments

@lostvicking
Copy link

Hello and thank you for maintaining this very useful project! I am using xml-crypto indirectly through a project called smalify. We have a requirement to have an ec:InclusiveNamespaces element in the signature of our SAML Response. I cannot seem to figure out how one adds InclusiceNamespaces to a signature and would be very thankful for some guidance on how to get that right.

<ds:SignedInfo>
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
<ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
<ds:Reference URI="#_1e1ed6a7c84fb5787ff829b0ba7a23b4">
<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#"/>
<ec:InclusiveNamespaces xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="ds saml xs xsi" />
</ds:Transforms>
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.

2 participants