Skip to content

feat(den): add OAuth provider flow#1940

Closed
pascalandr wants to merge 11 commits into
different-ai:devfrom
Pagecran:pr/den-oauth-provider-flow
Closed

feat(den): add OAuth provider flow#1940
pascalandr wants to merge 11 commits into
different-ai:devfrom
Pagecran:pr/den-oauth-provider-flow

Conversation

@pascalandr

@pascalandr pascalandr commented May 24, 2026

Copy link
Copy Markdown
Contributor

Dependency map

Pagecran/dev
`-- stack/provider-credential-contract-base          (A)
    |-- pr/den-managed-provider-sync                 (B)
    `-- stack/den-api-oauth-credential-handling      (C)
        |-- stack/oauth-device-flow-and-ui           (D)
        `-- stack/desktop-import-oauth-providers     (E)

Scope

  • Includes map parts: A + C + D.
  • Adds the LLM provider credential contract base for OAuth-backed OpenCode credentials.
  • Adds Den API handling for API-key versus OpenCode OAuth-backed provider credentials.
  • Adds OAuth device-flow start/complete routes and focused tests.
  • Adds Den Web provider UI for OAuth credential selection, device authorization, completion, and save flow.

Tests

  • pnpm --filter @openwork-ee/den-db build - PASS.
  • From ee/apps/den-api: pnpm exec tsc -p tsconfig.json --noEmit - PASS.
  • From ee/apps/den-api: pnpm exec bun test test/llm-provider-credentials.test.ts test/llm-providers-oauth.test.ts - PASS, 15 tests.

Linked issues

Add the LLM provider credential kind/opencode auth storage contract, migration, and passive credential redaction/flags needed by follow-up provider credential and worker sync PRs.
Add Den API create/update/read/import handling for API-key versus OpenCode OAuth provider credentials on top of the credential contract base.
Add Den API OpenAI OAuth device-flow routes/tests and Den Web provider UI for OAuth-backed provider credentials on top of the credential handling stack.
@vercel

vercel Bot commented May 24, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openwork-landing Ready Ready Preview, Comment, Open in v0 Jun 10, 2026 4:54pm

@vercel

vercel Bot commented May 24, 2026

Copy link
Copy Markdown
Contributor

@pascalandr is attempting to deploy a commit to the Different AI Team on Vercel.

A member of the Team first needs to authorize it.

@pascalandr pascalandr changed the title feat(den): add OpenAI OAuth provider flow feat(den): add OpenCode OAuth provider flow May 24, 2026
@pascalandr pascalandr changed the title feat(den): add OpenCode OAuth provider flow feat(den): add OAuth provider flow May 24, 2026
Merge upstream/dev into pr/den-oauth-provider-flow and sequence OAuth provider migration after SSO migrations.
…r-flow

# Conflicts:
#	ee/packages/den-db/drizzle/meta/_journal.json
Reject removed members during LLM provider access assignment, hide stale removed-member access rows, and add the missing Drizzle snapshot metadata for the OAuth provider migration.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 12 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread ee/apps/den-api/src/routes/org/llm-providers.ts Outdated
Use invitation fallback data for pending LLM provider member access rows and keep invited placeholders visible in access listings.
Allow Den web to parse pending invited LLM provider access rows with nullable user IDs and cover the serialized API parser contract.
Return an expired OpenAI OAuth signal for device-auth 404s, fail closed for invalid desktop handoff URL config, and avoid duplicate invite acceptance member-added hooks.
@pascalandr

Copy link
Copy Markdown
Contributor Author

@cubic-dev-ai review

@cubic-dev-ai

cubic-dev-ai Bot commented Jun 10, 2026

Copy link
Copy Markdown

@cubic-dev-ai review

@pascalandr I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review completed

Re-trigger cubic

@pascalandr

Copy link
Copy Markdown
Contributor Author

Superseded by the clean consolidated managed providers PR #2175.

@pascalandr pascalandr closed this Jun 11, 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.

OpenAI models not available despite being connected Anthropic auth: disable OAuth or enable via custom provider

1 participant