From 72eef7b480bd0ef8643a096350cc994c476e8e67 Mon Sep 17 00:00:00 2001 From: rxbn_ Date: Thu, 1 Oct 2020 21:59:21 +0200 Subject: [PATCH] different SSOProvider entrypoints for api and UI --- bin/config.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/bin/config.js b/bin/config.js index ac95805..a764f13 100644 --- a/bin/config.js +++ b/bin/config.js @@ -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 },