Cross-app session management (parked) #38

Open
opened 2026-04-07 12:32:07 +02:00 by claude · 0 comments
Owner

Logging out of the SaaS platform invalidates the Logto session (redirects to Logto end-session endpoint), but does not invalidate the cameleer3-server session. The server uses its own JWT issued after the OIDC code exchange.

Observed behavior

  1. Login as admin on platform → click "View Dashboard" → server shows "Platform Admin"
  2. Logout from platform → redirected to sign-in page
  3. Server tab still shows "Platform Admin" — server JWT is still valid

Root cause

Two independent JWT issuers: Logto (platform) and cameleer3-server (internal). The server's JWT has its own expiry and is not tied to the Logto session.

Possible approaches

  • Server-side: check Logto session validity on each request (adds latency)
  • Frontend: postMessage/BroadcastChannel to notify server-ui tab of logout
  • Accept as architectural constraint and document it

Status: PARKED — not blocking for current milestone.

Logging out of the SaaS platform invalidates the Logto session (redirects to Logto end-session endpoint), but does **not** invalidate the cameleer3-server session. The server uses its own JWT issued after the OIDC code exchange. ## Observed behavior 1. Login as admin on platform → click "View Dashboard" → server shows "Platform Admin" 2. Logout from platform → redirected to sign-in page 3. Server tab still shows "Platform Admin" — server JWT is still valid ## Root cause Two independent JWT issuers: Logto (platform) and cameleer3-server (internal). The server's JWT has its own expiry and is not tied to the Logto session. ## Possible approaches - Server-side: check Logto session validity on each request (adds latency) - Frontend: postMessage/BroadcastChannel to notify server-ui tab of logout - Accept as architectural constraint and document it **Status: PARKED** — not blocking for current milestone.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: cameleer/cameleer-saas#38