nayaread
HomeFavouritesTopicsSources
HomeFavouritesTopicsSources
NayaRead links to original engineering blogs. All copyright belongs to the respective authors.
The Cloudflare Blog·Aug 20, 2026·5 min read·Miller Vargas69

From all-or-nothing to task-based OAuth consent

Cloudflare OAuth now supports optional scopes, giving users more control over what an app can access and helping developers build secure consent flows around the task at hand.

AI summarygenerated from the source article

Cloudflare processed over one million OAuth authorizations under a strict binary limitation: users had to grant every requested permission or deny the application entirely. 👇

As Cloudflare added more granular permissions, this all-or-nothing approach broke down for tools like AI agents and MCP servers. These applications often request broad capabilities to handle arbitrary user tasks, but users rarely want an agent holding that much access. The only workaround was for app developers to build custom permission screens to filter scopes *before* sending the user to Cloudflare.

Cloudflare solved this by building scope customization directly into their OAuth authorization flow. Developers can now mark individual scopes as optional, letting users toggle off specific permissions right on the consent screen.

When a client initiates an authorization flow, Cloudflare evaluates required and optional scopes against only the scopes requested in that specific request, rather than every scope configured on the client.

If an application asks for four scopes and two are flagged as optional, Cloudflare displays all four, but allows the user to uncheck the optional ones. If that same app later initiates a flow requesting only two scopes, Cloudflare evaluates only those two for that session and ignores the unrequested ones entirely.

Once the user approves their chosen subset, Cloudflare generates an access token containing strictly the consented scopes. Developers exchange the authorization code and check the granted scope set in the response, allowing their application → agent to adjust its capabilities based on what access was actually granted.

Existing applications maintain their exact default behavior unless developers explicitly opt in. Apps can now request broad capabilities without scaring off security-conscious users, and developers no longer have to build custom UI pre-screens just to handle partial permissions.

Read original on blog.cloudflare.com

Discussion around the web

  • Hacker News1 · 0 💬

Score breakdown

  • Technical depth71
  • Practical value45
  • Originality100
  • Writing quality100
  • Source reputation90
  • Recency83
  • External engagement0
  • On-site engagement0

NayaRead shows a summary and links to the original article. The full article is hosted on blog.cloudflare.com.

More like this

The Cloudflare Blog

Unlocking the Cloudflare app ecosystem with OAuth for all

Jun 24, 2026·15 min read
The Cloudflare Blog

Protected Quick Tunnels: simple accountless authentication for your next dev project

Nikita Cano·11 days ago·7 min read
The Cloudflare Blog

Secure all your internal vibe-coded applications — in one click

Chythra Malapati·Aug 14, 2026·6 min read
The Cloudflare Blog

Enforce positive security with Cloudflare Application Profiles

Daniele Molteni·14 days ago·9 min read