1
0
mirror of https://github.com/rclone/rclone.git synced 2026-01-06 18:43:50 +00:00

s3: set session token when using STS

This commit is contained in:
Girish Ramakrishnan
2017-09-11 14:49:59 -07:00
committed by Nick Craig-Wood
parent d6eb625815
commit 2f0551074c
2 changed files with 5 additions and 2 deletions

View File

@@ -313,6 +313,7 @@ func s3Connection(name string) (*s3.S3, *session.Session, error) {
v := credentials.Value{
AccessKeyID: fs.ConfigFileGet(name, "access_key_id"),
SecretAccessKey: fs.ConfigFileGet(name, "secret_access_key"),
SessionToken: fs.ConfigFileGet(name, "session_token"),
}
// first provider to supply a credential set "wins"