Skip to content

Add bk auth login --org --token, alias configure, and store credentials in keychain#678

Merged
mcncl merged 4 commits intomainfrom
auth_configure_use_keychain_SUP-6288
Mar 3, 2026
Merged

Add bk auth login --org --token, alias configure, and store credentials in keychain#678
mcncl merged 4 commits intomainfrom
auth_configure_use_keychain_SUP-6288

Conversation

@scadu
Copy link
Contributor

@scadu scadu commented Mar 3, 2026

Description

This PR introduces token-mode auth login and keeps bk configure backward compatible by routing through shared auth logic.

Changes

  • Added token login support via bk auth login --org <org> --token <token>
  • Enforced flag validation: --token requires --org
  • Unified token persistence logic between auth login and configure
  • Made configure --force check org-specific (instead of depending on whichever org is currently selected)
  • Added regression tests covering configure/auth token flows and keychain-backed org switching

Testing

  • Tests have run locally (with go test ./...)
  • Code is formatted (with go fmt ./...)

@scadu scadu mentioned this pull request Mar 3, 2026
2 tasks
@scadu scadu marked this pull request as ready for review March 3, 2026 10:43
@scadu scadu requested a review from a team as a code owner March 3, 2026 10:43
Copy link
Contributor

@mcncl mcncl left a comment

Choose a reason for hiding this comment

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

🚀

@mcncl mcncl merged commit 09d0098 into main Mar 3, 2026
1 check passed
@mcncl mcncl deleted the auth_configure_use_keychain_SUP-6288 branch March 3, 2026 11:09
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