aws / aws/bedrock-agentcore-sdk-python

GetResourceOauth2Token returns ValidationException: Error parsing ClientCredentials response

オープン
#81 コメント 3 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
761
フォーク
147
平均マージ
1日 23時間
マージ済み PR(30日)
7

説明

When calling the following CLI command:
```
aws bedrock-agentcore get-resource-oauth2-token --workload-identity-token --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.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず `aws bedrock-agentcore get-resource-oauth2-token` コマンドを再現し、SDK の `GetResourceOauth2Token` オペレーションと比較します。ClientCredentials のレスポンスがどのように解析され、結果として生じた ValidationException がどのように表面化するかを調査します。ユーザーが identity provider から返されたレスポンスまたは具体的な解析エラーを特定できれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
aws, python
領域
authentication, cli
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。