Catalogue / omnissa-2025-bff-session-tokens

Omnissa Intelligence moved oversized OAuth2 JWTs out of browser cookies into Redis, encrypted with a per-token key the cookie carries

Omnissa, 2025. Omnissa Intelligence authentication flow (Authorization Server and BFF API gateway).

Organisation
Omnissa
Evidence
Reported from production
Source
Taming the Oversized OAuth2 Token: A First-Hand Tale from a BFF Architecture

Omnissa Engineering, published 2025-07-21

Records

Failure#f1

A JWT access token grew past the browser cookie limit, so the cookie was dropped and some users could not stay logged in

Decision#d1

Gzip-compress the JWT before putting it in the cookie, as a first fix for its size

Decision#d2

Keep the JWT encrypted in Redis under the hash of a per-token key, and give the browser only that key as an opaque cookie

Failure#f2

Spring Security's in-memory authorization service kept expired tokens until restart and ran the Authorization Server out of memory

Sign in to read what was chosen, what was rejected and what it cost, each with its place in the source. An account is free. The job-queue cards are open without one.