Skip to content

Commit

Permalink
changed config files to js ext and created test environment cfg file
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-hawk committed Jul 8, 2020
1 parent 638d3fa commit a499fe3
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 8 deletions.
5 changes: 5 additions & 0 deletions 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',
}
4 changes: 0 additions & 4 deletions config/default.json

This file was deleted.

8 changes: 4 additions & 4 deletions config/production.json
@@ -1,4 +1,4 @@
{
"passportFile" : "/etc/gluu/conf/passport-config.json",
"saltFile" : "/etc/gluu/conf/salt"
}
module.exports = {
passportFile : '/etc/gluu/conf/passport-config.json',
saltFile : '/etc/gluu/conf/salt',
}
26 changes: 26 additions & 0 deletions 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
}

0 comments on commit a499fe3

Please sign in to comment.