Skip to content

[BUG] Invalid document signature after upgrading from 2.2.0 to 4.0.1 #816

@ericwooley

Description

@ericwooley

After upgrading from 2.2.0 -> 4.0.1, I am getting an error:

Error: Invalid document signature
    at SAML.validatePostResponseAsync (/Users/ericwooley/projects/sbx/api/dist/api.bundle.js:83155:23)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

according to https://www.samltool.com/validate_response.php, the saml response is valid.

To Reproduce

  1. I setup an azure active directory saml app.
  2. I upgraded the lib to 4.0.1
  3. I get a saml response that throws the above error.
  4. Here are all the settings and certs.

EDIT: Removed recreation just in case.

Expected behavior

I switched branches to the version running 2.2.0 and replayed the exact same post request, and everything worked as expeced, with a successful verification.

Environment

  • Node.js version: 16.13.1
  • passport-saml version: 4.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions