Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BugFix: Fail gracefully when SAML Response is invalid. Fixes #238
Before, given junk input, validatePostResponse would fail with: TypeError: Cannot read property 'documentElement' of null Now we'll fail with: SAMLResponse is not valid base64-encoded XML To make this work, we primarily just needed to as a simple additional error check, but to throw the error properly, we needed to move a bit of logic into a nearby promise, but keeping some variable definitions in the outer scope where they continue to be expected.
- Loading branch information