Cloudflare has made its OAuth infrastructure available to all customers, removing the need for manual onboarding and enabling developers to create their own OAuth clients for delegated access to the Cloudflare API. The change allows for standard OAuth flows where users grant scoped permissions directly, simplifying the development of SaaS integrations, internal platforms, and agentic tools while improving consent visibility and revocation controls.
Until now, third-party OAuth access was limited to a small group of partners, forcing most developers to rely on API tokens for integrations. Tokens present management challenges and lack the granularity of OAuth for delegated workflows, particularly as demand for agentic tools grows. The shift to self-managed OAuth addresses these limitations while expanding the ecosystem for Cloudflare’s platform, which supports roughly 20% of the web.
Scaling OAuth securely
The expansion of OAuth access required significant upgrades to Cloudflare’s underlying infrastructure. The company’s earlier OAuth implementation, built on the open-source Hydra engine, was designed for a limited number of partners and lacked the maturity needed for broader adoption. Key improvements included a redesigned consent experience to clarify permission requests, dashboard-based revocation controls, and enhanced visibility of app ownership to mitigate phishing risks.
The backend upgrade process was split into two phases: first migrating to the latest 1.X release of Hydra, then proceeding to 2.X. The 1.X upgrade alone involved extensive schema changes, including new indexes and column migrations that risked locking critical tables and disrupting active users. To avoid downtime, Cloudflare rewrote the SQL migrations to use concurrent indexing and modified Hydra to avoid SELECT * operations, which could cause deserialization issues with the new schema.
Background: OAuth (Open Authorization) is an open standard for delegated access, allowing third-party applications to interact with APIs on behalf of users without exposing credentials. Cloudflare’s platform provides security, performance, and developer tools for websites and applications, with a global network spanning over 300 cities.
Upgrade challenges and execution
The 2.X upgrade presented even greater complexity. An in-place migration was ruled out due to the volume of schema changes, leading Cloudflare to adopt a blue-green deployment strategy. However, the multi-hour cutover period introduced risks: disabling writes would prevent new authorizations and revocations, while enabling writes risked data loss during the transition.
To mitigate these issues, Cloudflare implemented two key solutions. First, it increased token expiry times to reduce the frequency of refresh requests during the upgrade window. Second, it built a queue system using Cloudflare Queues to capture revocation events, allowing them to be replayed after the database cutover. This ensured that revoked access would not be inadvertently restored.
The 1.X upgrade proceeded smoothly, with custom migrations completing faster than expected. However, post-upgrade testing revealed a new issue: stricter refresh token invalidation in Hydra 1.X caused session disruptions for high-volume clients like Wrangler and MCP. Cloudflare addressed this by adding refresh token coalescing to its OAuth routing Worker, caching retry requests to prevent invalidation of entire token chains. The 2.X upgrade, which includes a configurable refresh token grace period, is expected to resolve this issue permanently.
Impact for developers
The availability of self-managed OAuth clients removes a key barrier for developers building integrations with Cloudflare’s platform. By standardizing delegated access, the change simplifies workflows for SaaS providers, internal tooling, and AI-driven automation. Users gain clearer consent controls and easier revocation, reducing the risk of unauthorized access.
For professionals: Developers can now register OAuth clients directly in the Cloudflare dashboard, eliminating the need for manual approval. This enables faster iteration for integrations and reduces reliance on long-lived API tokens, which are harder to audit and revoke. Teams should review existing token-based workflows to assess migration to OAuth for improved security and manageability.
Automated pipeline · SaaS
Synthesized from 1 industry feed on 24 Jun 2026. Passed independent editor verification (score 95/100) before publication. Style guide v1.3.
Sources
Decision trail
- Checking for duplicates — New story No recent or in-pipeline article covers Cloudflare's self-managed OAuth expansion.
- Writing the article — Draft created article_id=233 slug=cloudflare-opens-oauth-to-all-developers
-
Editor review — Approved
- Score: 95/100
- Factual grounding: The draft states 'Earlier this month, we announced self-managed OAuth' as a direct claim, but the source text does not specify the exact date of the announcement. While the source publication date is 24 June 2026, the draft should avoid implying a precise timeline ('earlier this month') unless explicitly supported by the source.
- Style compliance: The body length (728 words) slightly exceeds the 700-word upper limit for the main body (excluding ## Sources). While the additional length is justified by the technical depth, the writer should aim to tighten the prose to stay within the 300-700 word range for future drafts.
- No copied phrasing: The phrase 'scaling the ecosystem securely' and the list of improvements (consent experience, revocation controls, app ownership visibility) closely mirror the source wording. While the facts are correct, the phrasing should be restructured further to avoid echoing the source.
- Generating reader Q&A — Generated 4 items
- Assigning hero image — Reused library image reused image #95
- Linking related stories — Linked 3 relations from 186 candidates
- Publishing — Published cloudflare-opens-oauth-to-all-developers
- Mastodon — Posted https://mstdn.social/@hostingpaper/116805650481802550

Discussion · coming soon
Be the first to join the thread when community discussion launches.