Skip to content

v0.2.0

Latest

Choose a tag to compare

@github-actions github-actions released this 29 Nov 14:42
· 1 commit to main since this release
1ccef58

v0.2.0 introduces a dual-engine authentication architecture with chromedp as the default engine, retains Playwright as an opt-in backend, and integrates authentication management directly into the TUI via Ctrl+L.

Authentication Engines

  • Sets chromedp (direct Chrome DevTools Protocol in Go) as the default authentication engine using an already-installed Chromium-family browser (Chrome, Chromium, Microsoft Edge, or Brave >= 120), removing the mandatory Node.js driver and browser download.
  • Retains Playwright (Firefox) as an opt-in engine selectable via Ctrl+L, prefs.json, LAZYTEAMS_AUTH_ENGINE=playwright, or --engine playwright.
  • Isolates browser profiles and single-owner locks per engine (sessions/chromedp-<browser>/ with .meta.json executable pinning vs. browser-session/).
  • Adds lazyteams-auth --list-browsers to inspect the active engine, override source, config directory, and detected browsers without launching a browser.

Integrated Authentication Menu (Ctrl+L)

  • Adds the Ctrl+L Authentication popup inside the TUI with local, non-secret status indicators (Engine, Silent renewal, and Credentials).
  • Supports visible browser sign-in/re-authentication, on-demand headless token renewal, and persistent engine switching (auth_engine saved in prefs.json).
  • Allows the TUI to start cleanly without pre-existing tokens.env and guides interactive sign-in when needed.

Configuration, Renewal, and Reliability

  • Enforces strict configuration precedence: CLI flags > Environment variables > prefs.json > Default (chromedp / auto). CLI flags (--engine, --browser, --browser-path) apply to the current invocation without modifying prefs.json.
  • Supports LAZYTEAMS_CONFIG_DIR to isolate tokens, preferences, profiles, and logs in a custom directory.
  • Stops headless renewals cleanly with interaction_required when Microsoft requires MFA, Conditional Access, or re-login, prompting interactive recovery via Ctrl+L.
  • Preserves (oid, tid) identity binding for Graph tokens, HTTP 200 validation for EDU tokens, and Stage 7B Fabric exclusion (TEAMS_FABRIC_TOKEN remains disabled).
  • Adds prerelease suffix handling to semantic version comparison and fixes a race condition in chromedp browser PID tracking.

Upgrade Notes

  • Update lazyteams and lazyteams-auth together (paired binaries are verified against SHA256SUMS by lazyteams --update and [u] Update).
  • Existing tokens.env, prefs.json, and Playwright browser-session/ directories are preserved. When first using the default chromedp engine, sign in once via Ctrl+L to initialize its isolated profile.
  • End-to-end live Microsoft validation for chromedp has been completed on Linux (x86_64); macOS and Windows browser discovery and profile protections are implemented and covered by unit tests, with live host validation pending.

Full Changelog: v0.1.6...v0.2.0