Skip to content

Commit

Permalink
Fix ENV PDP
Browse files Browse the repository at this point in the history
  • Loading branch information
apozohue10 committed Feb 17, 2022
1 parent 608c5e1 commit 8d34859
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/config_service.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8d34859

Please sign in to comment.