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

Improve and simplify validation logic #373

Merged
merged 2 commits into from
Aug 10, 2023

Conversation

cjbarth
Copy link
Contributor

@cjbarth cjbarth commented Aug 3, 2023

The validation logic was a little convoluted. This PR aims to clean up that logic a little to make it easier to reason on. The deprecated functions can be removed in the next major release.

@cjbarth cjbarth added the chore label Aug 3, 2023
@cjbarth cjbarth requested a review from LoneRifle August 3, 2023 19:16
@codecov
Copy link

codecov bot commented Aug 3, 2023

Codecov Report

Merging #373 (225a596) into master (aded3e2) will increase coverage by 0.24%.
The diff coverage is 80.00%.

@@            Coverage Diff             @@
##           master     #373      +/-   ##
==========================================
+ Coverage   72.56%   72.81%   +0.24%     
==========================================
  Files           9        9              
  Lines         882      879       -3     
  Branches      234      233       -1     
==========================================
  Hits          640      640              
+ Misses        151      149       -2     
+ Partials       91       90       -1     
Files Changed Coverage Δ
src/signed-xml.ts 74.09% <80.00%> (+0.53%) ⬆️

📣 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. Nice work untangling the flow between checkSignature and validateSignatureValue, so that we can remove the latter!

@cjbarth cjbarth merged commit 2e32d50 into node-saml:master Aug 10, 2023
8 of 9 checks passed
@cjbarth cjbarth deleted the validation-refactor branch August 10, 2023 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants