Merge pull request #13145 from overleaf/jk-add-log-for-saml-error

[web] Add a log line for SAML errors

GitOrigin-RevId: f15370b4fe5205836d8b3818d2eda210259ce36c
This commit is contained in:
June Kelly 2023-05-19 10:40:30 +01:00 committed by Copybot
parent a06118b96d
commit c76e823c14

View file

@ -29,6 +29,13 @@ function log(req, data, samlAssertion) {
if (data.error.tryAgain) {
errSerialized.tryAgain = data.error.tryAgain
}
logger.error('SAML Error Encountered', {
providerId,
sessionId,
userId,
path,
query,
})
data.error = errSerialized
}