feat: expose proxy_mode via authsome config get/set proxy-mode#375
Closed
manojbajaj95 wants to merge 1 commit into
Closed
feat: expose proxy_mode via authsome config get/set proxy-mode#375manojbajaj95 wants to merge 1 commit into
manojbajaj95 wants to merge 1 commit into
Conversation
Closes #368. Adds `authsome config get proxy-mode` and `authsome config set proxy-mode <mode>` commands. Both read/write the caller-local ClientConfig and produce JSON output consistent with the rest of the CLI. Invalid keys and invalid mode values produce structured errors with the list of valid options. Includes 10 unit tests covering all four modes, the happy-path get, persistence to disk, and both error cases. README updated with a Proxy Policy section. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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
authsome config get proxy-modeto read the current proxy mode fromClientConfigauthsome config set proxy-mode <mode>to persist a new mode, with validation against the four allowed valuesClientConfigdocstring to reference the new CLI surfaceREADME.mdwith a mode reference tableTest plan
uv run pytest tests/cli/test_config.py -v— 10 tests covering all 4 valid modes, default-mode get, persist-to-disk, and both error cases (unknown key, invalid mode)uv run ruff check src/ tests/anduv run ruff format src/ tests/— no issuesuv run ty check src/— all checks passpre-commit run --all-files— passesCloses #368
🤖 Generated with Claude Code