-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Cloudflare Auth Service is a secure, scalable, and developer-friendly authentication solution built specifically for the modern web. Leveraging the power of Cloudflare Workers and D1 Database, it provides a cost-effective, global, and low-latency authentication system that you own completely.
Unlike third-party auth providers that lock you in and charge per user, Cloudflare Auth Service runs in your own Cloudflare account, giving you full control over your data and infrastructure.
- 🏢 Multi-Project Support: Manage authentication for multiple applications from a single dashboard. Each project gets its own isolated user table.
- 🔐 Secure Authentication: Industry-standard JWT authentication with configurable expiry, refresh tokens, and secure password hashing (bcrypt).
- 🌐 OAuth Integration: Drop-in support for major providers including Google, GitHub, Microsoft, and Apple.
- 🛡️ Rate Limiting: Built-in protection against brute-force attacks with configurable rules per project.
- 📝 Audit Logging: Comprehensive tracking of all security events, logins, and administrative actions.
- 📧 Email Integration: Support for major email providers (SendGrid, Mailgun, Postmark, Resend, SMTP) for verification and password resets.
- ⚡ High Performance: Deployed to Cloudflare's global edge network for minimal latency worldwide.
- 🌓 Admin Interface: A beautiful, responsive dashboard to manage users, projects, and settings (supports Light/Dark mode).
The service consists of two main components:
- The Worker (API): A Cloudflare Worker built with Hono that handles all authentication logic, API endpoints, and database interactions.
- The Admin UI: A React-based Single Page Application (SPA) served directly from the Worker, communicating with the API to manage the system.
Data is stored in Cloudflare D1, a distributed SQL database, ensuring your user data is replicated globally and backed up automatically.
Ready to get started? Follow our Installation Guide to deploy your own instance in minutes.
- Prerequisites: You need a Cloudflare account and Node.js installed.
-
Deploy: Use
wranglerto deploy the worker and database. - Configure: Set up your first project in the Admin UI.
- Installation & Setup: Step-by-step guide to deploying the service.
- Admin Panel Guide: Detailed overview of the management interface.
- API Reference: Integration guide for your applications.
- Troubleshooting: Common issues and solutions.
Deploy secure auth to the edge in minutes.
GitHub Repository • Report an Issue • Discussions
MIT License - Cloudflare Auth Service