1
0
Fork 0

different SSOProvider entrypoints for api and UI

This commit is contained in:
Ruben Meyer 2020-10-01 21:59:21 +02:00
parent 4f0ea1f15b
commit 72eef7b480
Signed by: rxbn_
GPG Key ID: BE3BF898BE352FE2
1 changed files with 5 additions and 4 deletions

View File

@ -9,17 +9,18 @@ module.exports = {
},
web: {
host: "*",
port: 8080,
port: 8081,
poweredBy: 'baseApp',
rootUrl: '/', // '/', '/SSObaseApp'
rootUrl: '/', // '/', '/SSObaseApp/'
doubleSlashCheck: true, // replacing // with /
sessionKey: require('crypto').randomBytes(32).toString('hex'),
cookieKey: require('crypto').randomBytes(32).toString('hex'),
rememberMeMaxAge: 1000*60*60 // two weeks (milliseconds*seconds*minutes)
},
sso: {
authenticator: "http://localhost:8080/api/authenticate", // redirect back to this url;
provider: "https://auth.rxbn.de/authenticate", // sso service
authenticator: "http://localhost:8081/api/authenticate", // redirect back to this url;
providerApi: "http://localhost:8080/api/authenticate", // sso service api
providerUI: "http://localhost:8080/authenticate", // sso service
appId: process.env.APP_ID, // app id
appSecret: process.env.APP_SECRET // random token
},