diff --git a/lib/sso.js b/lib/sso.js index 59f9854..3fac26c 100644 --- a/lib/sso.js +++ b/lib/sso.js @@ -210,6 +210,7 @@ async function redirectToSsoProvider(req, res) { var redirectBasePath = getRedirectBasepath() if (req.session.loggedin) { + req.session.touch() let jwtPayload = { protocol: redirectToken.protocol, host: redirectToken.host, diff --git a/test/e2e/tests/basic_test.js b/test/e2e/tests/basic_test.js index 4cdeda8..07d9d32 100644 --- a/test/e2e/tests/basic_test.js +++ b/test/e2e/tests/basic_test.js @@ -86,4 +86,12 @@ Scenario('Dynamic Upstreams Test SRV', async ({ I }) => { Scenario('Unauthenticated Access test', async ({ I }) => { I.amOnPage('http://test-unauthenticated-access.localtest.me/get'); I.see("x-public-access") -}); \ No newline at end of file +}); + +Scenario('Multiple site access without login', async ({ I }) => { + I.amOnPage('http://test-basic-login.localtest.me/get'); + I.login(); + I.see("x-veriflow-user-id") + I.amOnPage('http://test-https-upstream.localtest.me/get'); + I.see("x-veriflow-user-id") +});