Skip to content

V1.0.3 - Added Login via CLI and Authentication to API

Choose a tag to compare

@coelacant1 coelacant1 released this 28 Oct 18:38
· 5 commits to main since this release

Added

  • Two-Factor Authentication Support
    • BambuAuthenticator class for complete login flow with 2FA
    • Automatic email verification code handling
    • MFA (multi-factor authentication) support
    • Token persistence with secure file storage (0600 permissions)
    • Token validation and auto-refresh functionality
    • Support for both Global and China API regions
  • CLI Authentication Tool (cli_tools/login.py)
    • Interactive login with email verification code prompt
    • Non-interactive mode with command-line arguments
    • Token verification and testing
    • Force new login option
  • Authentication Documentation
  • Authentication Tests
    • Unit tests for BambuAuthenticator class
    • Token save/load/verify functionality tests
    • Mock-based login flow testing
    • 12/12 tests passing

Changed

  • Enhanced bambulab/__init__.py to export BambuAuthenticator and BambuAuthError
  • Updated README.md with authentication quick start guide
  • Improved auth.py with comprehensive 2FA flow implementation