Skip to content

throw when cert is null#397

Closed
mattkrick wants to merge 1 commit into
tngan:masterfrom
mattkrick:patch-1
Closed

throw when cert is null#397
mattkrick wants to merge 1 commit into
tngan:masterfrom
mattkrick:patch-1

Conversation

@mattkrick

Copy link
Copy Markdown

Related to: #222
I had a case where our saved IdP cert was invalid & when the correct cert came back in the response the cert was null.
The error message received was Cannot read property 'map' of null, which wasn't helpful.
This throws an error message which is a bit more helpful.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.09%) to 85.484% when pulling 6f608a9 on mattkrick:patch-1 into 32ce430 on tngan:master.

@mattkrick

Copy link
Copy Markdown
Author

@tngan any update here? anything i can do to get this into master?

sultanhq pushed a commit to findmypast/samlify that referenced this pull request Apr 30, 2025
fix: throw when cert is null tngan#397

Co-authored-by: rassul-findmypast <rassul-findmypast@users.noreply.github.com>
Co-authored-by: JAParsons <johnparsons932@gmail.com>
Co-authored-by: Jonathan Darrer <jdarrer@findmypast.com>
Co-authored-by: Matt Krick <matt.krick@gmail.com>
@tngan

tngan commented May 15, 2026

Copy link
Copy Markdown
Owner

Thank you for this fix, @mattkrick, and sorry for the long delay. The null-cert handling here has been incorporated via #565, which explicitly carries this change forward. Closing as superseded — much appreciated for the contribution and your support!

@tngan tngan closed this May 15, 2026
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