Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve debug output (node-saml#279)
This commit improves the debug output by adding the SAML response ID to the debug message and by exposing the validation errors from xml-crypto in case signature validation fails. Here are examples of the improve output: passport-saml checkSignature failed for pfx3b63c7be-fe86-62fd-8cb5-16ab6273efaa. Validation errors: invalid signature: for uri #pfx3b63c7be-fe86-62fd-8cb5-16ab6273efaa calculated digest is 0AbCoTZl3NxNBiPUyucHk/7gay8= but the xml to validate supplies digest DCnPTQYBb1hKspbe6fg1U3q8xn4= +-2017d passport-saml validatePostResponse for id "_6a377272c8662561acf1056274ef3f81" resulted in an error: Error: SAML provider returned Responder error: InvalidNameIDPolicy +1ms Testing done: ran 'DEBUG=passport-saml npm run-script test' successfully, saw the expected output.
- Loading branch information
d250c14
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any desire to make a PR for this against the node-saml project?