8000 [5.6] Passes `token` configuration value to AWS Client (#24746) · laravel/framework@bbe8950 · GitHub
[go: up one dir, main page]

Skip to content

Commit bbe8950

Browse files
shrinktaylorotwell
authored andcommitted
[5.6] Passes token configuration value to AWS Client (#24746)
* Passes `token` configuration value to S3 Client * Passes `token` configuration value to SQS client
1 parent 8369add commit bbe8950

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Illuminate/Filesystem/FilesystemManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ protected function formatS3Config(array $config)
220220
$config += ['version' => 'latest'];
221221

222222
if ($config['key'] && $config['secret']) {
223-
$config['credentials'] = Arr::only($config, ['key', 'secret']);
223+
$config['credentials'] = Arr::only($config, ['key', 'secret', 'token']);
224224
}
225225

226226
return $config;

src/Illuminate/Queue/Connectors/SqsConnector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function connect(array $config)
1919
$config = $this->getDefaultConfiguration($config);
2020

2121
if ($config['key'] && $config['secret']) {
22-
$config['credentials'] = Arr::only($config, ['key', 'secret']);
22+
$config['credentials'] = Arr::only($config, ['key', 'secret', 'token']);
2323
}
2424

2525
return new SqsQueue(

0 commit comments

Comments
 (0)
0