From c88fcf9193159783b9138f7ba4c3dda51561079c Mon Sep 17 00:00:00 2001 From: Gordon Nicholas Date: Fri, 8 Nov 2024 12:51:19 +0100 Subject: [PATCH] N21-2136 debugging --- helpers/authentication.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/helpers/authentication.js b/helpers/authentication.js index 3f65b9232e..9d51a6918e 100644 --- a/helpers/authentication.js +++ b/helpers/authentication.js @@ -108,9 +108,12 @@ const populateCurrentUser = async (req, res) => { try { const response = await api(req, { version: 'v3' }).get(`/systems/public/${decodedJwt.systemId}`); + const featureFlag = Configuration.get('FEATURE_EXTERNAL_SYSTEM_LOGOUT_ENABLED'); res.locals.isExternalLogoutAllowed = Configuration.get('FEATURE_EXTERNAL_SYSTEM_LOGOUT_ENABLED') && response.alias === 'SANIS'; res.locals.systemName = response.displayName; + logger.info('response: ', response.alias, response.displayName); + logger.info('feature: ', featureFlag); } catch (err) { const metadata = { error: err.toString() }; logger.error('Unable to find out the external login system used by user', metadata);