eetr-auth

Introduction

eetr-auth is a production-ready OAuth 2.1 and OpenID Connect authorization server that runs entirely on Cloudflare's edge — built to be forked as a template.

eetr-auth is a self-hostable OAuth 2.1 / OpenID Connect authorization server that runs entirely on Cloudflare's edge platform — no VMs, no containers, no origin servers. It ships as an npm monorepo you fork and deploy as a Cloudflare Workers template: two Workers, a D1 database, an R2 bucket, and a publishable TypeScript client library.

Built to be a Cloudflare template

This is not just a library — it is a deployable starting point. Fork the repo, point it at your Cloudflare account and domain, run the automated setup, and you have your own OAuth 2.1 / OIDC server on the edge in minutes. See Cloudflare template.

Architecture at a glance

What you get

Feature highlights

CategoryHighlights
OAuth 2.1Authorization Code + PKCE (S256), Client Credentials, Refresh Token with rotation
OpenID ConnectOIDC discovery, JWKS endpoint, /userinfo, ID tokens (RS256)
Dynamic Client RegistrationRFC 7591 self-registration for public clients (MCP-ready), rate-limited
Resource indicatorsRFC 8707 resource audience binding on access tokens
AuthenticationPassword (Argon2id), passkeys (WebAuthn), Google sign-in
Multi-factorEmail OTP (site-wide) and authenticator-app TOTP (per-user, RFC 6238)
AdminDashboard for users, clients, tokens, audit log, site settings, password policies
InfrastructureCloudflare D1 (SQLite), R2 (object storage), Terraform provisioning

Where to go next

On this page