Skip to content

Add guard for if a sp does not exist in a SAML request#12556

Merged
Sgtpluck merged 1 commit intomainfrom
dmm/saml-issuer
Oct 3, 2025
Merged

Add guard for if a sp does not exist in a SAML request#12556
Sgtpluck merged 1 commit intomainfrom
dmm/saml-issuer

Conversation

@Sgtpluck
Copy link
Copy Markdown
Contributor

@Sgtpluck Sgtpluck commented Oct 3, 2025

A new error has sprouted up since this PR adding user-facing errors to the SAML flow was deployed.

The specs did not catch it because it's fairly difficult to fake a bad SAML request; in order to get it to trigger, we need to mock out the signed? method to return true, even though our fake SAML request is not actually signed.

🛠 Summary of changes

  • Updates spec to reproduce error
  • Fixes error

Copy link
Copy Markdown
Contributor

@ajfarkas ajfarkas left a comment

Choose a reason for hiding this comment

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

Does what is says on the tin.

@Sgtpluck Sgtpluck merged commit b448f30 into main Oct 3, 2025
1 check passed
@Sgtpluck Sgtpluck deleted the dmm/saml-issuer branch October 3, 2025 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants