T13.11: session limit defaults to 8 hours (D25)

This commit is contained in:
2026-10-17 13:25:58 -07:00
parent 2c199f6f3f
commit 4fc6e8a01b
7 changed files with 108 additions and 7 deletions

View File

@@ -59,8 +59,10 @@ log = logging.getLogger("wpsuite.auth")
COOKIE_NAME = "wp_session"
JWT_ALG = "HS256"
# How long a session lasts before the person must sign in again.
SESSION_HOURS = int(os.getenv("AUTH_SESSION_HOURS", "12"))
# How long a session lasts before the person must sign in again. Default 8 hours (D25).
# One flat limit from the moment of sign-in. When T13.1 lands, the same variable becomes
# the absolute ceiling and an idle timer is added under it.
SESSION_HOURS = int(os.getenv("AUTH_SESSION_HOURS", "8"))
# ── permissions roles ─────────────────────────────────────────────────────────
ROLE_ADMIN = "admin"