diff --git a/controlplane/src/core/crypto/jwt.ts b/controlplane/src/core/crypto/jwt.ts index bc498789fb..bddc35e1b3 100644 --- a/controlplane/src/core/crypto/jwt.ts +++ b/controlplane/src/core/crypto/jwt.ts @@ -4,7 +4,7 @@ import { JWTDecodeParams, JWTEncodeParams } from '../../types/index.js'; import { base64URLEncode } from '../util.js'; export const nowInSeconds = () => Math.trunc(Date.now() / 1000); -export const DEFAULT_SESSION_MAX_AGE_SEC = 24 * 60 * 60; // 1 day +export const DEFAULT_SESSION_MAX_AGE_SEC = 14 * 24 * 60 * 60; // 14 days // The cookie name used to store the user session. export const userSessionCookieName = 'cosmo_user_session'; diff --git a/docker/keycloak/realm.json b/docker/keycloak/realm.json index de2ffdf78b..b6b6b13e3b 100644 --- a/docker/keycloak/realm.json +++ b/docker/keycloak/realm.json @@ -9,8 +9,8 @@ "refreshTokenMaxReuse": 0, "accessTokenLifespan": 28800, "accessTokenLifespanForImplicitFlow": 900, - "ssoSessionIdleTimeout": 86400, - "ssoSessionMaxLifespan": 86400, + "ssoSessionIdleTimeout": 259200, + "ssoSessionMaxLifespan": 1209600, "ssoSessionIdleTimeoutRememberMe": 0, "ssoSessionMaxLifespanRememberMe": 0, "offlineSessionIdleTimeout": 2592000, diff --git a/helm/cosmo/templates/keycloak-realm.yml b/helm/cosmo/templates/keycloak-realm.yml index da5874ada6..96fceb04bf 100644 --- a/helm/cosmo/templates/keycloak-realm.yml +++ b/helm/cosmo/templates/keycloak-realm.yml @@ -18,8 +18,8 @@ data: "refreshTokenMaxReuse": 0, "accessTokenLifespan": 28800, "accessTokenLifespanForImplicitFlow": 900, - "ssoSessionIdleTimeout": 86400, - "ssoSessionMaxLifespan": 86400, + "ssoSessionIdleTimeout": 259200, + "ssoSessionMaxLifespan": 1209600, "ssoSessionIdleTimeoutRememberMe": 0, "ssoSessionMaxLifespanRememberMe": 0, "offlineSessionIdleTimeout": 2592000,