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

Add method for checking if element is signed #368

Merged
merged 3 commits into from
Aug 2, 2023

Conversation

cjbarth
Copy link
Contributor

@cjbarth cjbarth commented Jul 31, 2023

The current recommendation is to have consumers check IDs on elements. We already do this internally, with much more rigor than the README suggests. This PR adds a method to leverage internal methods to perform a more rigorous check of signing of elements the consumer would like to use.

@codecov
Copy link

codecov bot commented Jul 31, 2023

Codecov Report

Merging #368 (4ac3c89) into master (06cab68) will increase coverage by 0.17%.
Report is 2 commits behind head on master.
The diff coverage is 47.61%.

@@            Coverage Diff             @@
##           master     #368      +/-   ##
==========================================
+ Coverage   72.38%   72.56%   +0.17%     
==========================================
  Files           9        9              
  Lines         862      882      +20     
  Branches      229      234       +5     
==========================================
+ Hits          624      640      +16     
- Misses        138      151      +13     
+ Partials      100       91       -9     
Files Changed Coverage Δ
src/types.ts 90.00% <ø> (+40.00%) ⬆️
src/signed-xml.ts 73.55% <34.48%> (-0.63%) ⬇️
src/c14n-canonicalization.ts 50.42% <70.00%> (-0.87%) ⬇️
src/utils.ts 85.04% <100.00%> (+1.08%) ⬆️

📣 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.

Some tidying up needed =)

src/signed-xml.ts Outdated Show resolved Hide resolved
test/signature-unit-tests.spec.ts Outdated Show resolved Hide resolved
src/signed-xml.ts Outdated Show resolved Hide resolved
src/signed-xml.ts Outdated Show resolved Hide resolved
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, after discussion

@cjbarth cjbarth merged commit aded3e2 into node-saml:master Aug 2, 2023
8 of 9 checks passed
@cjbarth cjbarth deleted the check-signature branch August 2, 2023 12:30
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