seung-lab / cloud-files

Threaded Python and CLI client library for AWS S3, Google Cloud Storage (GCS), in-memory, and the local filesystem.
BSD 3-Clause "New" or "Revised" License
36 stars 8 forks source link

Add support for AWS_SESSION_TOKEN #102

Closed madiganz closed 4 months ago

madiganz commented 4 months ago

This PR adds support for AWS_SESSION_TOKEN so that users can use an AWS account that supports this when using CloudFiles. Previously, requests would all return Forbidden because the session token was not actually being used during boto3 client creation. The PR adds support for AWS_SESSION_TOKEN to be used in an environment variable as well as through aws-secret.json. Fixes #101 .

william-silversmith commented 4 months ago

Tests are failing due to import error, not due to this PR.