Skip to content

Commit

Permalink
Fix config_service PDP
Browse files Browse the repository at this point in the history
  • Loading branch information
apozohue10 committed Feb 17, 2022
1 parent 8d34859 commit 89a3a04
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 @@ -214,10 +214,10 @@ function process_environment_variables(verbose) {
config.authorization.enabled = to_boolean(process.env.PEP_PROXY_AUTH_ENABLED, false);
}
if (config.authorization.enabled) {
let pdp = config.authorization.type ? config.authorization.type.toLowerCase() : '';
if (process.env.PEP_PROXY_PDP) {
config.authorization.pdp = process.env.PEP_PROXY_PDP;
pdp = process.env.PEP_PROXY_PDP;
}
let pdp = config.authorization.type.toLowerCase();
if (pdp === 'authzforce') {
pdp = 'azf';
}
Expand Down

0 comments on commit 89a3a04

Please sign in to comment.