From a5dfb398c22f5b1bf0a28bc5d62e7584a94c87a5 Mon Sep 17 00:00:00 2001 From: Rory Shanks Date: Wed, 6 Nov 2024 11:13:56 +0100 Subject: [PATCH] Added stuff --- lib/sso.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sso.js b/lib/sso.js index ebc2b1d..af71dbd 100644 --- a/lib/sso.js +++ b/lib/sso.js @@ -388,7 +388,7 @@ async function addSessionDetails(req) { async function externalAuthVerify(req, res) { var originalUrl = req.get("x-original-url") || req.query.rd if (!originalUrl) { - log.error({ message: "x-original-url or redirect query not specified when using external_auth", context: { error: error.message, trace: error.stack } }) + log.error({ message: "x-original-url or redirect query not specified when using external_auth"}) var html = await errorpages.renderErrorPage(500, "ERR_NO_ORIGINAL_URL_SPECIFIED", req) res.status(500).send(html) } @@ -396,7 +396,7 @@ async function externalAuthVerify(req, res) { var parsedUrl = new URL(originalUrl) var policy = getExternalAuthRouteFromHostname(parsedUrl.hostname) if (!policy) { - log.error({ message: "no route found for specified redirect URL, or route not enabled for external auth", context: { error: error.message, trace: error.stack } }) + log.error({ message: "no route found for specified redirect URL, or route not enabled for external auth" }) var html = await errorpages.renderErrorPage(404, "ERR_NO_ROUTE_FOUND", req) res.status(500).send(html) return