aws / aws/bedrock-agentcore-sdk-python
GetResourceOauth2Token returns ValidationException: Error parsing ClientCredentials response
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 764
- Forks
- 148
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 7
Description
When calling the following CLI command:
aws bedrock-agentcore get-resource-oauth2-token --workload-identity-token <workloadaccesstoken> --resource-credential-provider-name 'tradeforge-m2m' --scopes "email" --oauth2-flow 'M2M'
I receive An error occurred (ValidationException) when calling the GetResourceOauth2Token operation: Error parsing ClientCredentials response
I have absolutely no way to debug this. The same happens during runtime when using the SDK and there is no way to get to the actual reason as for why this is happening (what exactly was returned by the identity provider).
I'd greatly appreciate some degree of insight into the responses so that I could debug if the issue is on my side or not.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the aws bedrock-agentcore get-resource-oauth2-token command and compare it with the SDK's GetResourceOauth2Token operation. Inspect how the ClientCredentials response is parsed and how the resulting ValidationException is surfaced. Done means users can identify the identity provider's returned response or a specific parsing failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, python
- Domain
- authentication, cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100