Hi! I’m setting up XWiki with authentication through Keycloak (OIDC), and I’m facing an issue where the user gets logged out after closing and reopening the browser — even though the Keycloak session is still valid and the token hasn’t expired.
XWiki version: 17.3.0 docker compose postgres
- After login, everything works correctly.
- When the browser is closed and reopened:
- The
JSESSIONID
cookie is gone (because it doesn’t haveMax-Age
set and is treated as a session cookie). - XWiki considers the session lost and requires the user to log in again.
- The
- Meanwhile, the Keycloak session is still active, and other services using the same Keycloak realm do not require re-authentication.