# Sésame One identity for every app of the portfolio: a self-hosted OpenID Connect provider where you sign in with a passkey, enter by invitation, and stay signed in across every app you belong to. Source: https://steevepommier.com/projects/sesame/ Section: Projects Published: 2026-11-14 Updated: 2026-11-19 Tags: self-hosted, home lab, authentication, passkeys, security, Node.js, TypeScript, Koa, oidc-provider, SimpleWebAuthn, PostgreSQL, Docker --- Sésame is an OpenID Connect provider for the apps of this portfolio. An app — [Winnow](/projects/winnow/), [Atelier](/projects/atelier/), [Sketchbook](/projects/sketchbook/) — sends a person to Sésame to sign in, and gets back who they are: the same account on the phone, the tablet and the computer. It started from one observation: the apps had begun to depend on each other through shared services — Atelier keeps documents on Winnow, Atelier and Sketchbook publish through the same tool — and every device, every app, asked Steeve again who he was. ## For a person - **Passkeys only.** No password to guess or reuse, no mail. A lost device is answered by another passkey of yours, or by a recovery link from an administrator. - **Invitations name their apps.** A link opens one app or several, once, for a few days, and may carry a role in each. Whoever accepts it creates their account with a passkey, or joins with the one they have; the link has its QR code, to open on a phone. Without an invitation, Sésame refuses to sign someone into an app. - **One session.** Signed in once, every app you belong to signs you in without asking again. Signing out shows which apps still hold a session for you: sign out of one, of Sésame only, or of everything at once. - **Your Sésame** lists every app you may open and when you last signed in, every browser you are signed in on (which you can name, so a work Mac is not three identical "Mac · Chrome"), your passkeys and your profile — and the invitations waiting for you, to accept or decline. Pages follow your device's light or dark theme, or the one you pick. ## For an app An app's Connect tab in the administration puts first what a setup screen asks for, each with a Copy. Plain OpenID Connect, with its discovery document. A server app authenticates with its secret plus PKCE; a page with no server uses PKCE alone. Scopes are `openid profile email`, `role` when the app declared roles, and `offline_access` for a refresh token; the claims are a stable `sub`, the name, the email (never marked verified: Sésame sends no mail) and the role. Removing someone from an app, or disabling them, makes the app's next refresh fail and its next sign-in refused. ## How it is built - **Not inside Winnow.** Making Winnow the identity provider was considered and rejected: Winnow is the busiest process on the server and its database holds irreplaceable media state, while the service everyone needs to get in must be the smallest and steadiest of all. Winnow's sign-in code was the model — hashed sessions, single-use invitations — not its database. Sésame keeps its own. - **The protocol is never written by hand.** Sésame is built on `oidc-provider`, an OpenID Certified library, chosen over adopting Pocket ID, Authentik or Authelia: Sésame writes the accounts, passkeys, invitations, pages and administration, and can later hold more than identity, which an off-the-shelf provider would not. - **Authentication here, authorization in the app.** Sésame says who signed in and the role they were given; each app decides what that role may do. - **Passkeys bound to the whole domain**, so every page under it can use them — the way to let Atelier, launched from an iPhone home screen with its own cookie jar, sign in without a redirect later. But **no cookie on the whole domain**: it would travel to every subdomain, including software that is not his. - **Local-first apps keep working without it.** Atelier never needs Sésame for what it does offline, and each app keeps a way in of its own, or one outage would lock him out of everything. - **No build step.** Node runs the TypeScript sources directly; the image is the production dependencies, the sources, the migrations and the static files. It wears the same paper, ink and serif titles as Winnow and Atelier. ## What it does not do It sends no mail — a link is shown once and the administrator sends it. It stores no password. An invitation never makes an administrator. And it never stores what a project is: identity first; the state that follows a person from device to device and the context apps share are separate problems, kept apart. ## Next In order: the first apps move their own sign-in onto Sésame — a small private dashboard first, then Winnow, Atelier as a page with no server, Sketchbook — then the self-hosted tools that speak OpenID Connect, and finally the MCP servers, with Sésame as their authorization server so an assistant can connect to them.