First-party OAuth clients - #1527
Draft
RhysSullivan wants to merge 1 commit into
Draft
Conversation
Deploying with
|
| 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 |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
executor-cloud | 9e334c7 | Aug 03 2026, 11:27 PM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
firstPartyOAuthClientsexecutor config: apps declared at composition time, addressed asfirst-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/listClientsintercept thefirst-party:namespace ahead of the DB;createClient/removeClientreject it; the org→user sharing rule doesn't apply to deployment-owned apps. Refresh-at-execute resolves the same config identity.first_partyvariant onOAuthClientOrigin(API schema included), with pluralintegrationsfor picker intent-matching.FIRST_PARTY_{GITHUB,GOOGLE}_CLIENT_{ID,SECRET}env pairs enable each app; threaded throughHostConfigso 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-restpreset gains an OAuth auth template (classic OAuth app endpoints).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.