Skip to content

Commit

Permalink
[5.6] Passes token configuration value to AWS Client (#24746)
Browse files Browse the repository at this point in the history
* Passes `token` configuration value to S3 Client

* Passes `token` configuration value to SQS client
  • Loading branch information
shrink authored and taylorotwell committed Jul 4, 2018
1 parent 8369add commit bbe8950
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Illuminate/Filesystem/FilesystemManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ protected function formatS3Config(array $config)
$config += ['version' => 'latest'];

if ($config['key'] && $config['secret']) {
$config['credentials'] = Arr::only($config, ['key', 'secret']);
$config['credentials'] = Arr::only($config, ['key', 'secret', 'token']);
}

return $config;
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Queue/Connectors/SqsConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function connect(array $config)
$config = $this->getDefaultConfiguration($config);

if ($config['key'] && $config['secret']) {
$config['credentials'] = Arr::only($config, ['key', 'secret']);
$config['credentials'] = Arr::only($config, ['key', 'secret', 'token']);
}

return new SqsQueue(
Expand Down

0 comments on commit bbe8950

Please sign in to comment.