Skip to content

feat(login): let users choose an org and env before browser login - #117

Merged
francoischalifour merged 1 commit into
mainfrom
fc/login-oauth-preselection
Sep 25, 2026
Merged

francoischalifour merged 1 commit into
mainfrom
fc/login-oauth-preselection

Conversation

@francoischalifour

Copy link
Copy Markdown
Member

An agent can now run altertable login --org acme --env staging when a user asks to switch organizations or environments. The authorization page opens with those choices selected, so the user can review them and click Authorize.

The CLI sends the flags as organization and environment in the authorization URL. It also rejects empty values and updates the help, docs, and tests. Login without the flags works as before.

Expose organization and environment slug flags for browser login and pass their values through the authorization URL. The browser still handles explicit consent and the OAuth callback and token exchange remain unchanged.
@francoischalifour
francoischalifour merged commit 8a4bea3 into main Sep 25, 2026
12 checks passed
@francoischalifour
francoischalifour deleted the fc/login-oauth-preselection branch September 25, 2026 16:36
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.

2 participants