Skip to content

Commit

Permalink
Revert change type pdp
Browse files Browse the repository at this point in the history
  • Loading branch information
apozohue10 committed Feb 17, 2022
1 parent 1988c8b commit f99a412
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ config.cache_time = 300;

config.authorization = {
enabled: false,
type: 'idm', // idm|iShare|xacml|authzforce
pdp: 'idm', // idm|iShare|xacml|authzforce
header: undefined, // NGSILD-Tenant|fiware-service
pdp: {
protocol: 'http',
Expand Down
2 changes: 1 addition & 1 deletion config.js.template
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ config.cache_time = 300;

config.authorization = {
enabled: false,
type: 'idm', // idm|iShare|xacml|authzforce
pdp: 'idm', // idm|iShare|xacml|authzforce
header: undefined, // NGSILD-Tenant|fiware-service
pdp: {
protocol: 'http',
Expand Down
2 changes: 1 addition & 1 deletion lib/config_service.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ function process_environment_variables(verbose) {
if (process.env.PEP_PROXY_PDP) {
config.authorization.pdp = process.env.PEP_PROXY_PDP;
}
let pdp = config.authorization.type.toLowerCase();
let pdp = config.authorization.pdp.toLowerCase();
if (pdp === 'authzforce') {
pdp = 'azf';
}
Expand Down

0 comments on commit f99a412

Please sign in to comment.