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

Resolve XML-encoded carriage returns during signature validation (2.x) #578

Merged
merged 1 commit into from
Mar 30, 2021
Merged

Resolve XML-encoded carriage returns during signature validation (2.x) #578

merged 1 commit into from
Mar 30, 2021

Conversation

mhassan1
Copy link
Contributor

@mhassan1 mhassan1 commented Mar 29, 2021

Description

This is a 2.x backport of #576.

Resolves #575. See that issue for background.

This adds XML normalization to validateSignatureForCert before sending it to xml-crypto. It uses DOMParser for normalization tasks such as replacement of XML-encoded entities (
) with their actual representations (carriage return).

Checklist:

  • Issue Addressed: [X]
  • Link to SAML spec: [ ]
  • Tests included? [X]
  • Documentation updated? N/A

@mhassan1 mhassan1 changed the base branch from master to 2.x March 29, 2021 02:22
@mhassan1 mhassan1 changed the title Resolve encoded carriage returns (2.x) resolve XML-encoded carriage returns during signature validation (2.x) Mar 29, 2021
@mhassan1 mhassan1 changed the title resolve XML-encoded carriage returns during signature validation (2.x) Resolve XML-encoded carriage returns during signature validation (2.x) Mar 29, 2021
@cjbarth cjbarth merged commit 08c626c into node-saml:2.x Mar 30, 2021
@mhassan1
Copy link
Contributor Author

Is there a planned 2.x release that will include this?

@cjbarth
Copy link
Collaborator

cjbarth commented Apr 23, 2021

Done @mhassan1

@cjbarth cjbarth mentioned this pull request May 10, 2021
@cjbarth cjbarth added the bug label May 13, 2021
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.

[BUG] XML-encoded carriage returns are not resolved correctly
2 participants