AWS bearer token authentication issue

0

I have a requirement to get data from aws using IAM API's , so I have access key , secret key , base url , service name and region of aws account we are trying to authenticate with bearer token , but we are getting the following error , I have generated bearer token using aws cli.

URL : https://iam.amazonaws.com/?Action=ListGroups&Version=2010-05-08&access_token=<<token>>

https://iam.amazonaws.com/?Action=ListGroups&Version=2010-05-08&Authorization=Bearer <<token>>

Error : is not valid; the value of a query string parameter may not contain a '=' delimiter

1回答
0

The URL that you have presented seems correct. I suspect that you might not be escaping the token. Usually the token contains slashes (/) that need to be escaped.

If you are using Javascript you can use encodeURIComponent function to encode the token.

Without more information, is hard to know what the actual issue is. Hope this helps.

VM
回答済み 2年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ