Organizations with owners, admins and members, and invitations
Service accounts granted access to an organization, with the scopes each one holds
Per-app API keys, created and revoked from the admin console
OAuth providers per app, so a tenant can use its own client credentials
Every webhook event delivered to an app, with its delivery status and retry count
The callback origins an app may return to
Categories
Developer Tools
Tags
#oauth
#better-auth
#mcp
#device-flow
#api-keys
#organizations
#service-accounts
#webhooks
#nextjs
#stripe
#postgresql
About Forge Auth
Forge Auth replaces the per-app Supabase Auth wiring that every `-os` repo used to ship and is the canonical identity provider for the portfolio. It is a single Next.js 16 app at the repo root (no monorepo). It ships multi-tenant organizations (personal orgs, invitations, legacy-team migration, per-plan entitlements read by sibling apps), device-flow user-bound API keys, a key-resolve verifier (`@forge/auth-client`), Stripe checkout/portal/webhook with subscription table, and Federation Spec 1 service-account mint/resolve + admin CRUD.
Features
Sign-in & identity
One OAuth flow shared across every BlueForge app — Google, GitHub, and Gitea credentials live in Forge Auth and are federated to each consumer.
OAuth authorization server for the fleet's MCP servers — a portfolio app points its MCP endpoint at Forge Auth for tokens, and MCP clients register through Client ID Metadata Documents rather than open dynamic client registration.
+12Show all 14 features
One OAuth flow shared across every BlueForge app — Google, GitHub, and Gitea credentials live in Forge Auth and are federated to each consumer.
OAuth authorization server for the fleet's MCP servers — a portfolio app points its MCP endpoint at Forge Auth for tokens, and MCP clients register through Client ID Metadata Documents rather than open dynamic client registration.
Device-flow user-bound API keys — a desktop CLI logs the user in once, then issues scoped keys for unattended calls; the same client can resolve a key back to the owning user via the `/api/v1/users/resolve` verifier. Each key is bounded (default 30-day lifetime, re-approved through the device flow), labelled with the device that asked for it, and revocable on its own via `GET /api/v1/me/keys` + `DELETE /api/v1/me/keys/:keyId`.
Organizations behind `FORGE_AUTH_ORGANIZATIONS` — Better Auth's org plugin wired into the central database, with personal orgs, invitations, role mapping from legacy teams, and per-plan entitlements (e.g. `financials.apps.max`) read by sibling apps like financials-os.
Plan entitlements — forge-auth owns every plan limit (seats, apps, monthly active users, per-product caps) and serves the per-organization answer over a scoped read API, a public static catalog and the session claim, so sibling apps read the limit instead of guessing it.
Service accounts — scoped machine credentials minted through the admin API, exchanged for a short-lived token, resolvable by the services that hold them, and narrowed again by the organization that grants them access. A grant can only ever take scopes away, never add them.
Referral attribution — a `?ref=` code captured at sign-in is attributed to the referral and, at checkout, becomes trial days or a Stripe coupon; a paid invoice reports the conversion back. referrals-os owns the codes, and the lane no-ops when it is not configured.
Stripe checkout + portal + webhook with a subscription table that flips the org's plan between `free` / `basic` / `pro` / `team` / `enterprise`.
Webhook emitter — `organization.*`, `member.*`, `invitation.*`, `service_grant.*`, `subscription.*` and `account.*` events reach every app that registered a webhook URL as a signed JSON envelope, with a delivery log and an automatic retry schedule.
Admin console — one page per concern for every registered app: its API keys, its OAuth providers, the callback origins it may return to, and the webhook events delivered to it.
Shared Stripe test credentials — a service account holding `payments:test-credentials` fetches the test-mode secret key, webhook secret and default price over the API instead of each app keeping its own; test keys only, every issuance audited.
Stripe activity monitor — verified webhook events are stored as a PII-free projection (ids, amounts, currency, status) and read back via `GET /api/payments/events` and `/events/summary` with the `payments-events:read` scope.
Shared Twilio test credentials for SMS — `sms:test-credentials` service accounts fetch the Twilio test pair and sender number from one place, with every issuance audited.
Per-app branding on the hosted auth pages — /login and /sign-up resolve the initiating app from the `?redirect=` origin against the app registry's trusted origins and render that app's name, logo and accent colour (per-app overrides in `app.branding`, written via PATCH /api/admin/apps/:id); apps can also link straight to account creation via /sign-up, which reuses the sign-in page's redirect security model.
Gold
$39/mo
Complete developer operations suite with mission control and agents.
Deploy, run and watch your apps from one control plane
One control plane for BlueForge apps: push-to-deploy hosting with managed Postgres, S3 and Redis, deploy visibility, scheduled jobs and CI that skips what a change cannot affect. A per-project backend (database, REST, realtime) is in preview.
Un correo cuando lanzamos algo: nuevas funciones de la plataforma, nuevas apps e invitaciones de lanzamiento. Únete a la lista de espera para conseguir acceso anticipado al registro autogestionado y a los sitios de promoción.