IDPFlare - Identity Provider for Cloudflare

4 min read Original article ↗

Drop a fully functional OAuth 2.0 / OIDC server right onto Cloudflare's edge in minutes. Forget about managing servers and paying per-user SaaS fees.

< 50ms Global Response Time

100% Cloudflare Edge

$40 One-Time Purchase

# Clone and deploy
git clone https://github.com/IdpFlare/idpflare
cd idpflare

# Create required resources
# wrangler d1 create idpflare-db
# wrangler kv namespace create SESSIONS

# Update wrangler.toml with your settings and branding

npm run deploy

# Your IdP is live at:
# https://auth.yourdomain.com

# Complete with:
✓ OAuth 2.0 / OpenID Connect
✓ SAML 2.0 Support
✓ Social Login (Google, GitHub, etc)
✓ Multi-Factor Authentication
✓ Admin Dashboard
✓ Management APIs

Own your auth stack.

Deploy a complete, self-hosted Identity Provider directly to your Cloudflare account. It scales instantly, costs pennies to run, and keeps you out of SaaS lock-in.

×

OAuth 2.0 & OIDC

Strictly standard compliant. Full OAuth 2.0 and OpenID Connect support, including PKCE and refresh tokens right out of the box.

Make It Yours

Tweak the colors, swap the logos, and adjust the typography. The UI is completely configuration-driven so it feels like your brand.

Social Login

Drop in Google, GitHub, Facebook, or Microsoft logins with just a few lines of config.

Flexible MFA

Keep things secure with TOTP apps, Email OTPs, or backup codes. You decide how strict to be with your users.

Bring Your Own Email

Works seamlessly with Resend, SendGrid, Mailgun, Postmark, or AWS SES—complete with clean, customizable email templates.

Built-in Admin Panel

Manage users, revoke sessions, and generate API keys from a fast, clutter-free dashboard.

Automate Everything

Clean REST APIs for managing your instance, with interactive OpenAPI docs built right in.

SAML 2.0 Ready

Need to plug into legacy enterprise setups? We've got full SAML 2.0 support ready to go on day one.

Powered by the Edge

Runs on Cloudflare Workers. Enjoy zero cold starts and sub-50ms latency no matter where your users are globally.

Hook Into Anything

Tap into webhooks to run custom logic during registration, login, or token generation.

Know What's Happening

A detailed, searchable audit log of every sign in, registration, and security event so you're never flying blind.

Ditch the Per-User Fees

Host it on Cloudflare's free tier and only pay for bulk database usage once you get huge.

1

Grab the Code

Fork the repository to your GitHub account and tweak wrangler.toml to match your branding.

2

Spin Up Storage

Run a single command to provision your Cloudflare D1 database and KV storage namespaces.

3

Push to the Edge

Run npm run deploy to push your shiny new IdP to Cloudflare. It handles everything automatically.

4

Hook It Up

Point your apps to your IdP using standard OAuth/OIDC libraries.

Feature IDPFlare Auth0 Keycloak Self-Built
Setup Time 10 minutes 10 minutes 2+ hours Days or weeks
Infrastructure Self-Managed* Managed Self-managed Self-managed
Global Edge ✓ Included ✓ Premium
Cost (10k users) $40 (once) + $0-5/mo* $228/mo $50+/mo (VM) ~$50+/mo
Custom Domain ✓ Free ✓ Paid ✓ Free ✓ Free
White Label ✓ Full ✓ Paid ✓ Limited ✓ Full
Source Code Access ✓ Full ✓ Apache ✓ You own it

* See pricing section below

Full Access

IDPFlare License

$40 one-time

Everything you need to run your own identity provider

  • ✓ Full source code access
  • ✓ All features included
  • ✓ Deploy to your Cloudflare
  • ✓ Unlimited users
  • ✓ Unlimited applications
  • ✓ Future updates included

Buy Now

Your CF Costs

Cloudflare Usage

$0-5 /month

What you pay Cloudflare directly

  • ✓ Free tier: 100k requests/day
  • ✓ Free tier: 5 GB D1 database
  • ✓ Free tier: 1 GB KV storage
  • ✓ Paid: 10M requests included
  • ✓ Global edge deployment
  • ✓ Most users stay free

CF Pricing

Managed

We Deploy & Manage

Contact us

We handle everything for you

  • ✓ We deploy to your Cloudflare
  • ✓ Ongoing updates & maintenance
  • ✓ Priority support
  • ✓ Custom configuration
  • ✓ Security monitoring
  • ✓ Training & onboarding

Contact Us

💡 How it works: Purchase gives you access to the private repository. You deploy to your own Cloudflare account and pay them directly for usage (most users stay on the free tier).

Ready to take back your auth?

Grab the full source code today for a one-time payment of $40.