You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cloud OAuth requires BKT_OAUTH_CLIENT_ID and BKT_OAUTH_CLIENT_SECRET in the environment; use --web-token for API token login
Root cause
#179 (821185b) removed cloudClientID/cloudClientSecret ldflags from .goreleaser.yaml. Public artifacts now ship empty creds → guard at pkg/cmd/auth/auth.go:321 rejects --web unless user supplies env vars.
Out-of-box --web flow no longer works. Users must:
fall back to --web-token, or
register own OAuth consumer + export BKT_OAUTH_CLIENT_ID/BKT_OAUTH_CLIENT_SECRET, or
build from source with creds.
Stale docs
pkg/cmd/auth/auth.go:89-91 still says "OAuth credentials are embedded at build time via ldflags" — no longer true for public builds. README/CHANGELOG also need a note.
Summary
v0.26.3 Homebrew/release binary fails
--webOAuth login → emits:Root cause
#179 (821185b) removed
cloudClientID/cloudClientSecretldflags from.goreleaser.yaml. Public artifacts now ship empty creds → guard atpkg/cmd/auth/auth.go:321rejects--webunless user supplies env vars.Repro
```
brew install avivsinai/tap/bitbucket-cli # 0.26.3
bkt auth login https://bitbucket.org --kind cloud --web
```
Impact
Out-of-box
--webflow no longer works. Users must:--web-token, orBKT_OAUTH_CLIENT_ID/BKT_OAUTH_CLIENT_SECRET, orStale docs
pkg/cmd/auth/auth.go:89-91still says "OAuth credentials are embedded at build time via ldflags" — no longer true for public builds. README/CHANGELOG also need a note.Proposal
Pick one:
--web-tokenthe default suggestion for--kind cloud.