From 8d348593a9888cd72c412078e781d8107f0fb096 Mon Sep 17 00:00:00 2001 From: alex Date: Thu, 17 Feb 2022 12:27:03 +0100 Subject: [PATCH] Fix ENV PDP --- lib/config_service.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/config_service.js b/lib/config_service.js index feff9e0..50b1c06 100644 --- a/lib/config_service.js +++ b/lib/config_service.js @@ -221,9 +221,9 @@ function process_environment_variables(verbose) { if (pdp === 'authzforce') { pdp = 'azf'; } - config.authorization.pdp = pdp; config.authorization.azf = config.authorization.azf || {}; - config.authorization[pdp] = config.authorization[pdp] || {}; + config.authorization[pdp] = config.authorization.pdp || {}; + config.authorization.pdp = pdp; if (process.env.PEP_PROXY_PDP_PROTOCOL) { config.authorization[pdp].protocol = process.env.PEP_PROXY_PDP_PROTOCOL;