From a499fe31b7f555f19c6c0c4c973139493558c313 Mon Sep 17 00:00:00 2001 From: Christian H Date: Wed, 8 Jul 2020 14:26:15 +0000 Subject: [PATCH] changed config files to js ext and created test environment cfg file --- config/default.js | 5 +++++ config/default.json | 4 ---- config/production.json | 8 ++++---- config/test.js | 26 ++++++++++++++++++++++++++ 4 files changed, 35 insertions(+), 8 deletions(-) create mode 100644 config/default.js delete mode 100644 config/default.json create mode 100644 config/test.js diff --git a/config/default.js b/config/default.js new file mode 100644 index 00000000..6110a625 --- /dev/null +++ b/config/default.js @@ -0,0 +1,5 @@ + +module.exports = { + passportFile : '/opt/gluu-server/etc/gluu/conf/passport-config.json', + saltFile : '/opt/gluu-server/etc/gluu/conf/salt', +} diff --git a/config/default.json b/config/default.json deleted file mode 100644 index cb8cbfc0..00000000 --- a/config/default.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "passportFile" : "/opt/gluu-server/etc/gluu/conf/passport-config.json", - "saltFile" : "/opt/gluu-server/etc/gluu/conf/salt" -} \ No newline at end of file diff --git a/config/production.json b/config/production.json index a5294ec8..bf9212de 100644 --- a/config/production.json +++ b/config/production.json @@ -1,4 +1,4 @@ -{ - "passportFile" : "/etc/gluu/conf/passport-config.json", - "saltFile" : "/etc/gluu/conf/salt" -} \ No newline at end of file +module.exports = { + passportFile : '/etc/gluu/conf/passport-config.json', + saltFile : '/etc/gluu/conf/salt', +} diff --git a/config/test.js b/config/test.js new file mode 100644 index 00000000..74e402dd --- /dev/null +++ b/config/test.js @@ -0,0 +1,26 @@ +const passportFile = { + configurationEndpoint: + 'https://chris.gluuthree.org/identity/restv1/passport/config', + + failureRedirectUrl: + 'https://chris.gluuthree.org/oxauth/auth/passport/passportlogin.htm', + + logLevel: 'debug', + + consoleLogOnly: false, + + clientId: '1502.d49baf9f-b19b-40de-a990-33d08e7f9e77', + + keyPath: './test/testdata/passport-rp.pem', + + keyId: '36658e03-34ea-4745-ad43-959916c96def_sig_rs512', + + keyAlg: 'RS512' +} + +const saltFile = './test/testdata/salt' + +module.exports = { + passportFile, + saltFile +} \ No newline at end of file