File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -118,6 +118,7 @@ impl S3Fs {
118
118
pub struct S3CredentialsObject {
119
119
access_key_id : Cow < ' static , str > ,
120
120
secret_access_key : Cow < ' static , str > ,
121
+ session_token : Option < Cow < ' static , str > > ,
121
122
expires_after : Option < u64 > ,
122
123
}
123
124
@@ -126,7 +127,7 @@ impl S3CredentialsObject {
126
127
Credentials :: new (
127
128
self . access_key_id ,
128
129
self . secret_access_key ,
129
- None ,
130
+ self . session_token . map ( |it| it . to_string ( ) ) ,
130
131
self
131
132
. expires_after
132
133
. map ( Duration :: from_secs)
@@ -394,7 +395,7 @@ impl deno_fs::FileSystem for S3Fs {
394
395
}
395
396
396
397
#[ instrument(
397
- level = "trace" ,
398
+ level = "trace" ,
398
399
skip( self , options, _access_check) ,
399
400
fields( ?options, has_access_check = _access_check. is_some( ) ) ,
400
401
err( Debug )
You can’t perform that action at this time.
0 commit comments