Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aws-requests-auth support #69

Open
J-Templeman opened this issue Feb 28, 2023 · 2 comments
Open

aws-requests-auth support #69

J-Templeman opened this issue Feb 28, 2023 · 2 comments

Comments

@J-Templeman
Copy link

Im assuming the incident ticket process is for actual bugs

is there a discussion or forum to help get the plug in working?

im so close now and must be missing something
im getting an error Check your AWS Secret Access Key and signing method
it took me a while to realize it was the AccessKey and not the AccessKeyID (returned by the sts call) i need to use
Im using the SecretAccessKey returned by the sts auth

Any guidance on how i can get assistance to take this forward would be much appreciated

@J-Templeman
Copy link
Author

also the only temp code i have is from https://api.amazon.com/auth/o2/token
however the name of the auth parameter in the code is aws_token which suggests it comes from aws and not amazon seller
so im confused on this part

@J-Templeman
Copy link
Author

my code

Set the AWS credentials and create the RequestSigner object

auth = AWSRequestsAuth(
aws_access_key=access_key,
aws_secret_access_key=secret_key,
aws_token=token, # If using temporary security credentials
aws_host=host,
aws_region=region,
aws_service='execute-api'
)

url = 'https://sandbox.sellingpartnerapi-eu.amazon.com/orders/v0/orders?CreatedAfter=TEST_CASE_200&MarketplaceIds=ATVPDKIKX0DER'
response = requests.get(url, auth=auth)
print(response.content)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant