Skip to content

Register portless OIDC callback via Ory CLI on pnpm dev - #19

Merged
kamath merged 1 commit into
mainfrom
ory-cli-redirect-uris
Jul 28, 2026
Merged

Register portless OIDC callback via Ory CLI on pnpm dev#19
kamath merged 1 commit into
mainfrom
ory-cli-redirect-uris

Conversation

@kamath

@kamath kamath commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • When ORY_PROJECT_ID and OIDC_CLIENT_ID are set, pnpm dev registers this worktree’s portless OIDC callback (/api/auth/oauth2/callback/oidc) on the Ory OAuth2 client before servers start.
  • Merges the new redirect URI into the existing client config (via get + --file update) so other URIs are preserved; missing CLI/auth only warns.
  • Documents ORY_PROJECT_ID in .env.example and loads .env for the root dev script.

Test plan

  • Set ORY_PROJECT_ID + OIDC_CLIENT_ID in .env, run pnpm dev, confirm the portless callback is logged as registered (or already registered)
  • Complete OIDC login against the branch portless URL
  • Confirm other existing redirect URIs on the client are unchanged
  • Unset ORY_PROJECT_ID and confirm pnpm dev still starts with a skip message

Made with Cursor

Co-authored-by: Cursor <cursoragent@cursor.com>
@vercel

vercel Bot commented Jul 28, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
abilities-frontend Ready Ready Preview, Comment Jul 28, 2026 5:10pm

Request Review

@kamath
kamath merged commit 17ba1a4 into main Jul 28, 2026
3 checks passed
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