-
Notifications
You must be signed in to change notification settings - Fork 126
Open
Labels
authenticationcliChanges that impact CLI functionalityChanges that impact CLI functionalityenhancementNew feature or requestNew feature or requestproxy
Description
Summary
Expose token exchange functionality through CLI flags in thv proxy
and thv run
commands to enable command-line users to configure token exchange.
What We're Doing
Adding command-line flags to configure token exchange parameters and integrating the token exchange middleware into the proxy and run commands.
Deliverables
- CLI flags for token exchange configuration:
- OAuth 2.0 token endpoint URL
- Client credentials (ID and secret)
- Target audience or scope
- Optional custom header name for token injection
- Integration with runner configuration
- Automatic header strategy selection based on provided flags
- Documentation via flag help text
Acceptance Criteria
- Token exchange can be enabled via CLI flag
- All required OAuth parameters configurable via flags
- Custom header injection works when specified
- Default behavior replaces Authorization header
- Token exchange is optional (omitting flags disables it)
- Works with both
thv proxy
andthv run
commands - Flag help text clearly describes each parameter
- Configuration validated at startup
Metadata
Metadata
Assignees
Labels
authenticationcliChanges that impact CLI functionalityChanges that impact CLI functionalityenhancementNew feature or requestNew feature or requestproxy