Skip to content

First-party OAuth clients - #1527

Draft
RhysSullivan wants to merge 1 commit into
mainfrom
first-party-oauth-clients
Draft

First-party OAuth clients#1527
RhysSullivan wants to merge 1 commit into
mainfrom
first-party-oauth-clients

Conversation

@RhysSullivan

Copy link
Copy Markdown
Collaborator

Adds host-operated OAuth apps ("first-party clients") so users can connect GitHub, Google, etc. through cloud's own registered apps with nothing to paste.

  • New firstPartyOAuthClients executor config: apps declared at composition time, addressed as first-party:<name>. Resolved from config, never stored — secrets stay in host env, are never written to a credential provider, and never cross any read surface. Minted connections and tokens remain per-owner.
  • oauth-service: loadClient/listClients intercept the first-party: namespace ahead of the DB; createClient/removeClient reject it; the org→user sharing rule doesn't apply to deployment-owned apps. Refresh-at-execute resolves the same config identity.
  • New first_party variant on OAuthClientOrigin (API schema included), with plural integrations for picker intent-matching.
  • Cloud: FIRST_PARTY_{GITHUB,GOOGLE}_CLIENT_{ID,SECRET} env pairs enable each app; threaded through HostConfig so both the HTTP plane and the MCP session DO resolve them. Cloud-only for now (a stable registered callback is required; local/self-host deployments register their own apps).
  • github-rest preset gains an OAuth auth template (classic OAuth app endpoints).
  • Connect UI: first-party apps rank first in the picker with a "Built-in" badge and no manage menu; BYO remains the escape hatch.

Tests: SDK lifecycle suite (start/complete/execute/refresh, namespace guards, listing), picker tier tests, and a cloud e2e scenario proving env → HostConfig → authorize-redirect end to end.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 3, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
executor-marketing 9e334c7 Commit Preview URL

Branch Preview URL
Aug 03 2026, 11:27 PM

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 3, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
executor-cloud 9e334c7 Aug 03 2026, 11:27 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant