You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feature #42982 Add Session Token to Amazon Mailer (Jubeki)
This PR was squashed before being merged into the 5.4 branch.
Discussion
----------
Add Session Token to Amazon Mailer
| Q | A
| ------------- | ---
| Branch? | 5.4
| Bug fix? | no
| New feature? | yes <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets | <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License | MIT
| Doc PR | There doesn't appear to be a Amazon/SES section in the docs right now <!-- required for new features -->
This PR provide's support for Amazons separate Session Token feature in both the API and HTTPS transports. I've added the ability to set the session token via a query parameter in the DSN.
Right now in Laravel users have the ability to use a Session Token together with temporary Access and Secret keys for sending emails. But unfortunately Symfony Mailer, which we're switching to for the upcoming Laravel v9 release doesn't has this feature yet. That's why I decided to send in this PR so both Symfony and Laravel users can enjoy this feature from SES / Amazon. This PR is needed for laravel/framework#38481
Documentation for the Session Token with temporary credentials can be found here: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html
Documentation for creating `AsyncAws/Ses/SesClient` can be found here: https://async-aws.com/configuration.html#sessiontoken
Current setup through Laravel can be found here: https://github.com/laravel/framework/blob/8.x/src/Illuminate/Mail/MailManager.php#L258-L293
(It seems like Laravel has not documented this feature yet. I will be sending a PR to the Laravel docs and then update this PR accordingly)
`@driesvints` maybe you can also take a look at this PR.
Commits
-------
fdeec77 Add Session Token to Amazon Mailer
0 commit comments