ADR 0005 — Signed session cookie, no external IdP

Status

Accepted

Context

MAIL-73 must authenticate the Inbox Agent user and persist User. The application session is a different concern from Microsoft Graph / Gmail provider OAuth. An external identity provider was considered and rejected for Sprint 01: the first deployment is single-user-ready and must not block on Auth0, Clerk, Cognito, or Supabase Auth.

SESSION_SECRET is already required at process start (MAIL-72). MAIL-74 encrypts provider tokens in a secret store (ADR 0004). Those tokens must never appear in the application session.

MAIL-74 shipped first and claimed ADR 0004 for token key separation, so this session decision is ADR 0005.

Decision

Alternatives considered

Consequences