Skip to content

Improve and simplify validation logic#373

Merged
cjbarth merged 2 commits intonode-saml:masterfrom
cjbarth:validation-refactor
Aug 10, 2023
Merged

Improve and simplify validation logic#373
cjbarth merged 2 commits intonode-saml:masterfrom
cjbarth:validation-refactor

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
@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