OAUTH adapter for Ghost
  • TypeScript 98.9%
  • JavaScript 1.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-07-24 22:56:25 +00:00
.forgejo/ISSUE_TEMPLATE docs: add compact project roadmap 2026-07-23 21:48:30 +02:00
deploy Caddy+Authelia POC 2026-07-25 00:18:57 +02:00
docs docs: clarify active forward auth scope 2026-07-24 13:34:52 +02:00
src Caddy+Authelia POC 2026-07-25 00:18:57 +02:00
.gitignore chore: ignore local worktrees 2026-07-23 21:11:53 +02:00
index.js Caddy+Authelia POC 2026-07-25 00:18:57 +02:00
LICENSE init commit 2026-07-23 19:55:21 +02:00
package.json Caddy+Authelia POC 2026-07-25 00:18:57 +02:00
pnpm-lock.yaml revert: remove speculative planning apparatus 2026-07-23 21:46:30 +02:00
README.md feat: Added XAuth SSO 2026-07-24 17:36:30 +02:00
tsconfig.json Caddy+Authelia POC 2026-07-25 00:18:57 +02:00

ghost-oauth

ghost-oauth is an early TypeScript project exploring external authentication for Ghost staff users. The exported adapter class is currently named NiceOAuth.

No authentication strategy is implemented yet. The current adapter methods return null, so this package is not ready for use with Ghost.

The current milestone is M1: Forward Auth Mode. It will add a forward-auth adapter for existing Ghost staff users, with Caddy and Authelia as the baseline deployment and additional oauth2-proxy examples.

Later milestones may consider:

  • forwarded JWTs verified by the adapter
  • a native OpenID Connect login flow
  • claims and Ghost role reconciliation

Those milestones will be defined after M1 establishes the supported Ghost integration boundary.

Project documents

Build

pnpm install
pnpm build

There is no working test suite yet.

Installing and activating

Place the adapter at content/adapters/sso/MySSO/index.js and activate it in your Ghost config:

{
  "adapters": {
    "sso": {
      "active": "NiceOAuth",
      "NiceOAuth": {
        "mode": "x-auth",
        "requiredGroups": ["GhostStaff"] // optional
      }
    }
  }
}

See also https://github.com/TryGhost/Ghost/tree/main/packages/adapters/sso-base#installing-and-activating