Skip to content

Commit

Permalink
Update config pdp naming
Browse files Browse the repository at this point in the history
  • Loading branch information
apozohue10 committed Feb 17, 2022
1 parent b88db2b commit d4230dc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
const config = {};

// Used only if https is disabled
config.pep_port = 3001;
config.pep_port = 3003;

// Set this var to undefined if you don't want the server to listen on HTTPS
config.https = {
Expand Down Expand Up @@ -52,10 +52,10 @@ config.cache_time = 300;
// This is only compatible with oauth2 tokens engine

config.authorization = {
enabled: false,
enabled: true,
pdp: 'idm', // idm|iShare|xacml|authzforce
header: undefined, // NGSILD-Tenant|fiware-service
pdp: {
location: {
protocol: 'http',
host: 'localhost',
port: 8080,
Expand Down
2 changes: 1 addition & 1 deletion config.js.template
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ config.authorization = {
enabled: false,
pdp: 'idm', // idm|iShare|xacml|authzforce
header: undefined, // NGSILD-Tenant|fiware-service
pdp: {
location: {
protocol: 'http',
host: 'localhost',
port: 8080,
Expand Down
2 changes: 1 addition & 1 deletion lib/config_service.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ function process_environment_variables(verbose) {
}
config.authorization.pdp = pdp;
config.authorization.azf = config.authorization.azf || {};
config.authorization[pdp] = config.authorization[pdp] || {};
config.authorization[pdp] = config.authorization.location || {};

if (process.env.PEP_PROXY_PDP_PROTOCOL) {
config.authorization[pdp].protocol = process.env.PEP_PROXY_PDP_PROTOCOL;
Expand Down

0 comments on commit d4230dc

Please sign in to comment.