AWS bearer token authentication issue
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
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.
Relevant questions
Channel can't pull if Input type RTMP_PULL with url have access key.
asked 5 months agoS3 presigned url access Denied
Accepted Answerasked 5 months ago[MOVED] How to use openpgp card to store secret access key?
asked 6 months agoHow do you setup cross-account IAM authentication in AWS MSK?
Accepted Answerasked 4 months agoRotating the Old AWS Access Key, for a New AWS Access Key in WorkMail
Accepted Answerasked 6 months agoCross Account Copy S3 Objects From Account B to AWS KMS-encrypted bucket in Account A
asked 5 months agoSigning REST requests using IAM access key
asked 2 years agoAdvantages of "Access key ID & Secret access key" over "Username and password"
asked 5 months agoAWS Transfer Family - SSH Key Pair
asked 8 months agoAWS bearer token authentication issue
asked 2 months ago