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:
committed by
Nick Craig-Wood
parent
d6eb625815
commit
2f0551074c
1
s3/s3.go
1
s3/s3.go
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user