Closed matthieu-foucault closed 2 years ago
Hey team! Please add your planning poker estimate with ZenHub @dleard @naomiaro @pbastia
Moving this back to the backlog - keycloak connect doesn't work quite as anticipated and extends the session on any request no matter what. changes to make:
Description
To be added in a
packages
folder in the repoconst {keycloak, ssoMiddleware} = new ssoUtils({ // options here sessionStore, keycloakConfig, getLandingRoute = (req) => // .... , mockAuthentication: false // set to true if you want to bypass auth in dev environments, maybe allow fine-tuning to mock specific features (e.g. login route, timeout route) routes: { login: '/login', logout: '/logout', register: '/register', // allow true/false to disable the register route. Disabled by default, set to true or a string to enable, sessionIdleRemainingTime: // extendSession: // } });
server.use(ssoMiddleware);
server.get('/my-protected-route', keycloak.protect());