refactor(auth): drop WorkOS, default to browser PKCE (0.1.5)#8
Merged
Conversation
196f4aa to
73151f0
Compare
- Remove WorkOS AuthKit support (auth/_workos.py + tests). Browser PKCE is now the delegated path; client-credentials covers automation; BC remains the permission boundary. - `bcli config init` defaults to browser PKCE for humans/agents; new `--automation` (client-credentials) and `--headless` (device-code) shortcuts. - Move CLI runtime deps (typer, rich, pyyaml, keyring) into the base install so `pip install bc-cli` and `uv tool install bc-cli` ship a working `bcli` without an extra. `[cli]` kept as a no-op for back-compat; `[mcp]` no longer pulls bc-cli[cli]. - Add `docs/business-central-admin-setup.md`: zero-knowledge walkthrough of Entra app registration, redirect setup, delegated BC permissions, admin consent, BC user permission sets, first `config init`, verify. - Gitignore `.planning/` (internal planning notes / sibling-repo bootstrap drafts).
73151f0 to
cd130cb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
bcli config initdefaults to browser PKCE for humans/agents. New--automation(client-credentials) and--headless(device-code) shortcuts cover the other flows.typer,rich,pyyaml,keyring) into the base install —pip install bc-clianduv tool install bc-cliship a workingbcliwith no extras.[cli]kept as a no-op for back-compat;[mcp]no longer pullsbc-cli[cli].docs/business-central-admin-setup.md— zero-to-working walkthrough (Entra app registration, redirect setup, delegated BC permissions, admin consent, BC user permission sets, firstconfig init, verification).0.1.5; CHANGELOG dated 2026-05-05..planning/.Test plan
uv run pytest tests/ -q— 455 passed, 1 skippeduv run ruff check src/bcli config init(default flow) end-to-end with a real Entra appbcli config init --automationsmoke testbcli config init --headlesssmoke testpip install bc-cli(no extras) on a clean venv →bcli --helpworks