Skip to content

Make Issuer Required in the Types Too (like it is at runtime)#90

Merged
cjbarth merged 1 commit intonode-saml:masterfrom
sadikinfosec:make-issuer-required-in-the-types-to-match-the-runtime-check
Jun 16, 2022
Merged

Make Issuer Required in the Types Too (like it is at runtime)#90
cjbarth merged 1 commit intonode-saml:masterfrom
sadikinfosec:make-issuer-required-in-the-types-to-match-the-runtime-check

Conversation

@sadikinfosec
Copy link
Contributor

Description

Resolves #89

We had an application using the 4.0.0-beta.2 version that we needed to update to use the latest master commit instead to pick up the update to the xml-encryption dependency that patched a security vulnerability.

That app was not previously passing a value for "issuer" to the SAML constructor, but was relying on the library to provide a default.

After updating, this caused problems similar to the ones mentioned in the Github issue, and after rolling back and trying again, we patched this by providing a value for "issuer" to fit the new requirement.

We noted this could've been caught earlier had TS warned us about the new requirement, and so wanted to try and update the library to that effect for anyone else who might come across this change in the future.

Checklist:

  • Issue Addressed: 89
  • Link to SAML spec: N/A
  • Tests included? Updated existing ones
  • Documentation updated?
    • The READme only seems to have examples where issuer is set. I'm not sure exactly where this would make sense to mention

@sadikinfosec sadikinfosec marked this pull request as ready for review June 16, 2022 17:10
Copy link
Collaborator

@cjbarth cjbarth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching this.

@cjbarth
Copy link
Collaborator

cjbarth commented Oct 24, 2023

@sadikinfosec , could you please have a look at #246 and comment on how your fix appears to be breaking his case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Issuer is Now Required at Runtime But Not During Type Checking

2 participants