Skip to content

fix: make OAuth credentials conditional in code commands#74

Merged
clavery merged 2 commits intomainfrom
bugfix/35-oauth-required
Jan 27, 2026
Merged

fix: make OAuth credentials conditional in code commands#74
clavery merged 2 commits intomainfrom
bugfix/35-oauth-required

Conversation

@clavery
Copy link
Copy Markdown
Collaborator

@clavery clavery commented Jan 25, 2026

Summary

  • OAuth credentials are now only required for code deploy and code watch when actually needed
  • Basic auth (username/password) now works for WebDAV-only operations when --code-version is provided
  • Improved error messages explain why OAuth is needed and link to configuration docs

Changes

Closes #35

OAuth is now only required for code deploy/watch when actually needed:
- No code version specified (auto-discovery via OCAPI)
- --reload flag is set (reload via OCAPI)

When using basic auth with an explicit --code-version, OAuth is not required.
Error messages now explain why OAuth is needed and link to configuration docs.

Closes #35
Comment thread packages/b2c-cli/src/commands/code/deploy.ts
yhsieh1
yhsieh1 previously approved these changes Jan 26, 2026
Test both error paths when OAuth credentials are missing:
- No code version specified (needs auto-discovery)
- --reload flag set (needs OCAPI call)
@clavery clavery merged commit 6b72da4 into main Jan 27, 2026
3 checks passed
@clavery clavery deleted the bugfix/35-oauth-required branch January 27, 2026 01:22
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.

Code related commands require oauth

2 participants