Skip to content

feat(oauth-connect): accept projectIdOrName instead of projectId#354

Merged
dionlow merged 1 commit into
mainfrom
eng/oauth-connect-project-id-or-name
Apr 30, 2026
Merged

feat(oauth-connect): accept projectIdOrName instead of projectId#354
dionlow merged 1 commit into
mainfrom
eng/oauth-connect-project-id-or-name

Conversation

@dionlow
Copy link
Copy Markdown
Contributor

@dionlow dionlow commented Apr 30, 2026

Summary

  • /oauth-connect request body now requires projectIdOrName (project UUID or project name) in place of projectId, matching the rest of the API.
  • Updates the schema, description, and the three example payloads.

Pairs with backend PR https://github.com/amp-labs/server/pull/3839.

Test plan

  • rdme openapi:validate api.yaml passes
  • Regenerate the typescript-fetch SDK and verify the React FE compiles with the new field name
  • Manual end-to-end OAuth flow against a project referenced by name

The /oauth-connect endpoint now accepts the project name in addition to
the project UUID, matching the rest of the API. See backend PR
amp-labs/server#3839.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@dionlow dionlow merged commit 6e73714 into main Apr 30, 2026
2 checks passed
@dionlow dionlow deleted the eng/oauth-connect-project-id-or-name branch April 30, 2026 22:58
dionlow pushed a commit to amp-labs/react that referenced this pull request Apr 30, 2026
Backend (amp-labs/server#3839) and OpenAPI spec
(amp-labs/openapi#354) now accept project name in addition to UUID
on /oauth-connect. Regenerate the SDK and pass projectIdOrName
straight from AmpersandProvider context, removing the unnecessary
useProjectQuery() round-trip in the OAuth flow.

The regenerated SDK also picks up unrelated providerInfo subscribe
changes from amp-labs/openapi#352.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
dionlow added a commit to amp-labs/react that referenced this pull request Apr 30, 2026
Backend (amp-labs/server#3839) and OpenAPI spec
(amp-labs/openapi#354) now accept project name in addition to UUID
on /oauth-connect. Regenerate the SDK and pass projectIdOrName
straight from AmpersandProvider context, removing the unnecessary
useProjectQuery() round-trip in the OAuth flow.

The regenerated SDK also picks up unrelated providerInfo subscribe
changes from amp-labs/openapi#352.

Co-authored-by: Dion Low <dion@withampersand.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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