97365ffd-3cc8-44df-af8a-e5bd49f6bd68

Cloudflare Gives You the Keys to the OAuth Castle, for Free

Self-managed auth for all. No tricks. No traps.

Alex Novak||Source: Hacker News
Cloudflare Gives You the Keys to the OAuth Castle, for Free
Photo by cottonbro studio on Pexels

Cloudflare just dropped a bomb on the authentication landscape. Yesterday, the company announced that its OAuth service is now available to everyone, self-managed, no strings attached. No more vendor lock-in. No more paying per user. No more hoping your auth provider doesn't get hacked or go bankrupt. This is the kind of move that makes competitors sweat.

Wait, Weren't You Already Doing OAuth?

Yes and no. Cloudflare has offered OAuth as part of its broader security and access products for years. But it was always tied to Cloudflare Access or other premium services. You had to buy into the ecosystem. If you wanted just the OAuth piece, you were out of luck. Until now.

The new offering is called "OAuth for All," and it's exactly what it sounds like. You get the full OAuth 2.0 and OpenID Connect implementation, with Cloudflare handling the heavy lifting, but you own the infrastructure. You bring your own database, your own user store, your own domain. Cloudflare provides the plumbing.

"We're not building a walled garden here. We want developers to have the best tools, and we think the best tool is one you control." — Cloudflare CTO John Graham-Cumming

Why This Matters: The Death of Auth-as-a-Service?

For years, companies like Auth0, Okta, and Firebase have made a killing by offering authentication as a managed service. And it's great — until it's not. When Auth0 was acquired by Okta, prices went up. When Firebase got folded deeper into Google Cloud, the free tier got stingier. And when any of these providers suffer an outage or breach, your app goes down or your users' data leaks.

Cloudflare's move flips the script. You get the convenience of a managed service — the protocols, the security, the compliance — but you keep custody of your user data. It's like having a landlord who lets you own the house while they maintain the plumbing and wiring. You can leave anytime, and you take your stuff with you.

But Is It Really Free?

Nothing is ever truly free, but this is close. The base tier is free forever: 10,000 active users, unlimited apps, unlimited requests. Above that, you pay for storage and compute — but at Cloudflare's wholesale rates, not some marked-up auth tax. For most startups and side projects, it will cost exactly $0.

Compare that to Auth0's free tier, which limits you to 7,000 users and 2 social connections. Or Firebase Authentication, which charges after 10,000 monthly active users. Cloudflare's offering is more generous on paper, and more importantly, it doesn't force you into a proprietary data model.

The Technical Details: What You Actually Get

Under the hood, it's standard OAuth 2.0 and OpenID Connect. You get authorization codes, implicit grants, client credentials, refresh tokens — the whole nine yards. Plus WebAuthn support, because passkeys are the future and Cloudflare knows it. The setup is dead simple: a few API calls, some DNS tweaks, and you're done.

One killer feature: you can bring your own database. Postgres, MySQL, Redis, even a custom API. Cloudflare doesn't store your users. They just validate tokens. That means if you ever want to move to a different provider or go fully self-hosted, you just point your tokens somewhere else. No data migration nightmare.

Another neat trick: the service integrates with Cloudflare Workers, so you can build custom auth flows in a few lines of code. Want to add a two-factor step based on the user's location? Write a Worker. Want to block signups from certain email domains? Write a Worker. It's the kind of flexibility that makes developers giddy.

The Elephant in the Room: Trust

Cloudflare is a massive company that handles a huge chunk of the internet's traffic. They've had their share of controversies — the KKK client, the 8chan shutdown, the whole "we protect everyone" ethos. But on the technical side, they've been rock solid. Their edge network is absurdly fast, and their security track record is actually pretty good.

Still, putting your auth in the hands of a single company, even one as big as Cloudflare, is a leap of faith. What if they change the terms? What if they get acquired? What if they go full evil? Well, that's the beauty of self-managed OAuth: you can walk away. Your users are in your database, not theirs. You're not locked in. That's a huge psychological shift from the old model.

And let's be real — Cloudflare has been surprisingly good about not enshittifying its products. Their free tier is still generous. Their CEO, Matthew Prince, has repeatedly said that they don't want to be a "tax" on the internet. This move aligns with that philosophy.

What This Means for the Industry

Auth0 and Okta are probably sweating right now. They've built their businesses on the idea that auth is hard and you should pay them to handle it. Cloudflare is saying, "Actually, it's not that hard, and you shouldn't have to pay us." That's a direct shot across the bow.

But Cloudflare isn't just undercutting on price — they're changing the value proposition. They're saying you don't have to trade control for convenience. You can have both. That's a powerful message, and it's one that resonates especially with the developer community, which has a deep distrust of vendor lock-in.

If Cloudflare executes well on this, we could see a broader shift toward infrastructure that respects user ownership. Other providers might be forced to offer similar self-managed options, or risk becoming irrelevant. Either way, developers win.

The Bottom Line

Cloudflare's OAuth for All is a big deal. It's not perfect — it requires you to trust Cloudflare's infrastructure, and the free tier has limits that might chafe at scale. But for the vast majority of projects, it's the best auth option available. Free, fast, and you own your data. What's not to like?

Go sign up. Set up a test app. It takes ten minutes. If you don't like it, you haven't lost anything. That's the point.

Advertisement
#Cloudflare#OAuth#authentication#developer tools
分享到:XfWB