From c76e823c1468f64bad48ab3d0614d86a0bc6e926 Mon Sep 17 00:00:00 2001 From: June Kelly Date: Fri, 19 May 2023 10:40:30 +0100 Subject: [PATCH] Merge pull request #13145 from overleaf/jk-add-log-for-saml-error [web] Add a log line for SAML errors GitOrigin-RevId: f15370b4fe5205836d8b3818d2eda210259ce36c --- services/web/app/src/Features/SamlLog/SamlLogHandler.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/services/web/app/src/Features/SamlLog/SamlLogHandler.js b/services/web/app/src/Features/SamlLog/SamlLogHandler.js index 48e4dd96e7..3732264a54 100644 --- a/services/web/app/src/Features/SamlLog/SamlLogHandler.js +++ b/services/web/app/src/Features/SamlLog/SamlLogHandler.js @@ -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 }