Skip to content

Commit 259af62

Browse files
authored
Check both KEY_SECRET_ACCESS_KEY and KEY_SECRET_KEY_ID (#753)
1 parent e88d312 commit 259af62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Credentials/IniFileProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ private function getCredentialsFromProfile(array $profilesData, string $profile,
6464
}
6565

6666
$profileData = $profilesData[$profile];
67-
if (isset($profileData[IniFileLoader::KEY_ACCESS_KEY_ID], $profileData[IniFileLoader::KEY_ACCESS_KEY_ID])) {
67+
if (isset($profileData[IniFileLoader::KEY_ACCESS_KEY_ID], $profileData[IniFileLoader::KEY_SECRET_ACCESS_KEY])) {
6868
return new Credentials(
6969
$profileData[IniFileLoader::KEY_ACCESS_KEY_ID],
7070
$profileData[IniFileLoader::KEY_SECRET_ACCESS_KEY],

0 commit comments

Comments
 (0)