Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

Aero2

A full-stack OIDC (OpenID Connect) implementation built with React, Vite, Hono, and Cloudflare Workers.

Aero2 provides both an OIDC Provider (OP) for issuing tokens and a Relying Party (RP) for authenticating users via external identity providers like GitHub and Google.

Features

  • OIDC Provider (OP) — Issue access tokens and ID tokens, manage OAuth clients, expose standard OIDC endpoints
  • Relying Party (RP) — Authenticate users via GitHub, Google, or other OAuth2/OIDC providers
  • Role-Based Access Control — Granular permissions with admin and user roles
  • User Management — Automatic user creation and identity linking
  • Edge Deployment — Runs on Cloudflare Workers with D1 database and Durable Objects

Security Highlights

  • PKCE required (S256) for all authorization requests
  • RS256-only algorithm restriction
  • Refresh token HMAC hashing
  • SSRF protection for IdP URLs
  • CSRF protection via state validation, cookie binding, Origin/Referer checks
  • HSTS and secure cookie attributes

Tech Stack

LayerTechnology
FrontendReact 19 + TypeScript + Vite
BackendHono (edge-native web framework)
DatabaseCloudflare D1 (SQLite)
Key ManagementDurable Objects for JWKS rotation
RuntimeCloudflare Workers
CI/CDGitHub Actions

Quick Links