Skip to content

Default the Add connection tab to OAuth when a matching app exists - #2066

Merged
RhysSullivan merged 3 commits into
mainfrom
fix/connection-oauth-default
Sep 18, 2026
Merged

RhysSullivan merged 3 commits into
mainfrom
fix/connection-oauth-default

Conversation

@RhysSullivan

@RhysSullivan RhysSullivan commented Sep 18, 2026

Copy link
Copy Markdown
Collaborator

When an integration offers both an API key and OAuth, select OAuth only when a matching client is available. Use the app picker’s integration, endpoint and scope rules. Otherwise keep the API-key default. Late client responses preserve the user’s selected method and any key already entered.

Verified: 87 focused unit tests, all 6 connection scenarios on cloud and self-host, React and E2E type checks, lint, and formatting pass. Chrome also checked ready-client and missing-client forms. Provider consent uses the published Slack emulator. All 43 CI checks pass; one check is skipped.

The change: which tab opens first

Both columns use the same OpenAPI test setup: an API-key method, an OAuth method, and an already-registered OAuth app. Neither opening excerpt clicks an auth tab. Before, API key is selected. After, OAuth is selected automatically.

oauth-default-comparison.mp4

The comparison crops the first 2.5 seconds of each original recording, then holds the final frame. Labels and outlines identify the selected tabs.

Full original recordings

Before: API key selected despite a ready OAuth app

After: matching OAuth app selected automatically

No matching client: keep the API-key default

Connection setup · without a matching client the API key stays the default (selfhost)

Late client response: preserve the entered key

Connection setup · client list arrives with the form enter API key (selfhost)

All recordings use synthetic accounts. Filming adds deliberate pauses; video duration is not a page-load measurement.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 18, 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 b549288 Commit Preview URL

Branch Preview URL
Sep 18 2026, 07:58 PM

@github-actions

github-actions Bot commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Cloudflare preview

Torn down — the PR is closed.

@pkg-pr-new

pkg-pr-new Bot commented Sep 18, 2026

Copy link
Copy Markdown

Open in StackBlitz

@executor-js/cli

npm i https://pkg.pr.new/@executor-js/cli@2066

@executor-js/config

npm i https://pkg.pr.new/@executor-js/config@2066

@executor-js/execution

npm i https://pkg.pr.new/@executor-js/execution@2066

@executor-js/sdk

npm i https://pkg.pr.new/@executor-js/sdk@2066

@executor-js/codemode-core

npm i https://pkg.pr.new/@executor-js/codemode-core@2066

@executor-js/runtime-quickjs

npm i https://pkg.pr.new/@executor-js/runtime-quickjs@2066

@executor-js/plugin-file-secrets

npm i https://pkg.pr.new/@executor-js/plugin-file-secrets@2066

@executor-js/plugin-graphql

npm i https://pkg.pr.new/@executor-js/plugin-graphql@2066

@executor-js/plugin-keychain

npm i https://pkg.pr.new/@executor-js/plugin-keychain@2066

@executor-js/plugin-mcp

npm i https://pkg.pr.new/@executor-js/plugin-mcp@2066

@executor-js/plugin-onepassword

npm i https://pkg.pr.new/@executor-js/plugin-onepassword@2066

@executor-js/plugin-openapi

npm i https://pkg.pr.new/@executor-js/plugin-openapi@2066

executor

npm i https://pkg.pr.new/executor@2066

commit: b549288

@RhysSullivan
RhysSullivan force-pushed the fix/connection-oauth-default branch from 1ee663a to b549288 Compare September 18, 2026 19:57
@RhysSullivan RhysSullivan changed the title Prefer OAuth when adding a connection Prefer OAuth when a matching client is available Sep 18, 2026
@RhysSullivan
RhysSullivan marked this pull request as ready for review September 18, 2026 20:00
@cloudflare-workers-and-pages

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 b549288 Sep 18 2026, 08:00 PM

@RhysSullivan
RhysSullivan merged commit c6d1083 into main Sep 18, 2026
78 of 80 checks passed
@RhysSullivan RhysSullivan changed the title Prefer OAuth when a matching client is available Default the Add connection tab to OAuth when a matching app exists Sep 18, 2026
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