Files
twenty/.github/workflows
Félix Malfait d2d3e500b8 Make cookie sessions the only web auth path (#24257)
Cookie-based web sessions have been running in production long enough to
become the only web login path, ahead of deprecating JWT for the web
app. JWT stays for OAuth/apps, and as the fallback credential for
clients that predate the session cookie.

- Removed `AUTH_COOKIE_SESSIONS_ENABLED` and every branch behind it:
`UserSessionCookieService` and `UserSessionService` now always issue and
read the session cookie.
- Removed `isCookieSessionEnabled` from client config (entity, service,
generated schema artifacts) and from the front end: the
`isCookieSessionEnabled` atom is gone, `CookieSessionBootEffect` always
probes, and `SettingsProfileDevicesSection` no longer skips its query.
- Dropped the CI env plumbing and the `ci:auth-cookie-sessions` label,
so the server integration suite runs against sessions like production.
- Removed the config overrides and the disabled-path cases from the
session integration suites and the CSRF middleware unit test.

Existing instances with a DB override row for the key keep it in
`core.keyValuePair`, where it is simply never read.

Generated files were edited by hand since codegen needs a running
server; the schema drift check in CI is the verification.
2026-08-17 12:25:47 +02:00
..