Fixing SSO issue

revert-70aa11f8
Rasika Perera 8 years ago
parent a0c842c6c6
commit 9fd6145605

@ -1,5 +1,4 @@
function onRequest(context) { function onRequest(context) {
var devicemgtProps = require("/app/modules/conf-reader/main.js")["conf"];
var authModuleConfigs = context.app.conf["authModule"]; var authModuleConfigs = context.app.conf["authModule"];
var sessionDataKey = request.getParameter("sessionDataKey"); var sessionDataKey = request.getParameter("sessionDataKey");
@ -19,7 +18,7 @@ function onRequest(context) {
var viewModel = {}; var viewModel = {};
var loginActionUrl = context.app.context + "/uuf/login"; var loginActionUrl = context.app.context + "/uuf/login";
if (sessionDataKey) { if (sessionDataKey) {
loginActionUrl = devicemgtProps["httpsURL"] + "/commonauth"; loginActionUrl = "/commonauth";
} }
viewModel.sessionDataKey = sessionDataKey; viewModel.sessionDataKey = sessionDataKey;

Loading…
Cancel
Save