feat: Auto-configure Authorization header forwarding for OAuth authentication #189
+184
−1
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.
Description
Automatically configure Authorization header forwarding when OAuth authentication is enabled via CLI. This enhancement eliminates the need for manual header configuration when using OAuth, ensuring that JWT tokens are properly forwarded to agent containers for claim access.
Type of Change
Testing
Checklist
Security Checklist
Breaking Changes
List any breaking changes and migration instructions:
N/A
Additional Notes
Key Changes
agentcore configure, theAuthorizationheader is automatically added torequest_header_configurationrequest_header_configurationfield andget_request_header_configuration()methodDesign Decision
This automation is CLI-only and maintains the Python SDK's explicit configuration philosophy. CLI users get smart defaults for OAuth, while Python SDK users retain full control over header configuration.
Files Changed
documentation/docs/user-guide/runtime/quickstart.md- OAuth header documentationsrc/bedrock_agentcore_starter_toolkit/cli/runtime/commands.py- Auto-configure headers for OAuthsrc/bedrock_agentcore_starter_toolkit/cli/runtime/configuration_manager.py- Added OAuth header config methodsrc/bedrock_agentcore_starter_toolkit/operations/runtime/configure.py- Pass header config to operationssrc/bedrock_agentcore_starter_toolkit/operations/runtime/launch.py- Include header config in deploymentsrc/bedrock_agentcore_starter_toolkit/services/runtime.py- Handle header config in service callssrc/bedrock_agentcore_starter_toolkit/utils/runtime/schema.py- Added header config schema and methodsImpact