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

Remove default canonicalization algorithm #405

Merged
merged 2 commits into from
Oct 18, 2023

Conversation

cjbarth
Copy link
Contributor

@cjbarth cjbarth commented Oct 12, 2023

This removes the default canonicalization algorithm forcing the consumer to choose the one that they want. This is an attempt to address #376.

Side note: We do not support all the "required" algorithms. See: https://www.w3.org/TR/xmldsig-core1/#:~:text=4.1%20DSA%5D-,canonicalization,-Required

@codecov
Copy link

codecov bot commented Oct 12, 2023

Codecov Report

Merging #405 (9bced7e) into master (e044d7a) will decrease coverage by 0.45%.
The diff coverage is 70.58%.

@@            Coverage Diff             @@
##           master     #405      +/-   ##
==========================================
- Coverage   74.35%   73.91%   -0.45%     
==========================================
  Files           9        9              
  Lines         889      897       +8     
  Branches      236      238       +2     
==========================================
+ Hits          661      663       +2     
- Misses        135      139       +4     
- Partials       93       95       +2     
Files Coverage Δ
src/c14n-canonicalization.ts 52.50% <100.00%> (+0.39%) ⬆️
src/enveloped-signature.ts 83.33% <100.00%> (+0.72%) ⬆️
src/exclusive-canonicalization.ts 77.51% <100.00%> (+0.17%) ⬆️
src/types.ts 90.00% <ø> (ø)
src/signed-xml.ts 75.94% <54.54%> (-1.15%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Collaborator

@LoneRifle LoneRifle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@cjbarth cjbarth merged commit 5629be4 into node-saml:master Oct 18, 2023
7 of 9 checks passed
@cjbarth cjbarth deleted the default-canonicalization branch October 18, 2023 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants