Skip to content

Commit

Permalink
Fix SES signature (#654)
Browse files Browse the repository at this point in the history
* Fix SES signature

* Update SES ChangeLog
  • Loading branch information
jderusse authored May 26, 2020
1 parent 149227f commit 66084e0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

## NOT RELEASED

## 1.1.1

### Fixed

- Fix invalid signature in SES client because of wrong Scoped Service.

## 1.1.0

### Deprecation
Expand Down
6 changes: 3 additions & 3 deletions src/SesClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,21 +51,21 @@ protected function getEndpointMetadata(?string $region): array
return [
'endpoint' => "https://email.$region.amazonaws.com",
'signRegion' => $region,
'signService' => 'email',
'signService' => 'ses',
'signVersions' => ['v4'],
];
case 'us-gov-west-1':
return [
'endpoint' => "https://email.$region.amazonaws.com",
'signRegion' => $region,
'signService' => 'email',
'signService' => 'ses',
'signVersions' => ['v4'],
];
case 'fips-us-gov-west-1':
return [
'endpoint' => 'https://email-fips.us-gov-west-1.amazonaws.com',
'signRegion' => 'us-gov-west-1',
'signService' => 'email',
'signService' => 'ses',
'signVersions' => ['v4'],
];
}
Expand Down

0 comments on commit 66084e0

Please sign in to comment.