Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[10.x] Do not add token to AWS credentials without validating it first (
laravel#48297) * Remove token from config options when making a new DynamoDB client - including this creates an error with the `AwsClient` (which `DynamoDbClient` extends) in recent versions of the AWS PHP SDK: ```Invalid configuration value provided for "token"...``` * Do not add `token` value to the `credentials` array element _unless it was already present_ within the config. Adding a blank `token` value into this array element - simply because two other values (`key` and `secret`) happened to be found within the config - can break the `AwsClient`/`S3Client` being built by these managers. It is also cleaner to have a separate check for this `token` value - rather than assume that because you found two other values, you may as well go ahead and add this third value into the mix too, without having validated it first. --------- Co-authored-by: Michael Mehmet <>
- Loading branch information