Commit Graph

18 Commits

Author SHA1 Message Date
saltzmanjoelh 2e205327f8
Make sure urls have trailing slashes (#6)
* Make sure urls have trailing slashes
* Cleaned up code

Co-authored-by: Joel Saltzman <>
2020-08-11 15:48:44 +01:00
Adam Fowler b8af0b2a43
SwiftCrypto (#3)
* Use swift-crypto for hashing requirements
* Remove swift 5.0 as it won't compile
* Optimization - stop recreating DateFormatter
* Ressurected AWSCrypto so we can support earlier OS versions
* Update CI for workdir issue, remove libssl-dev
2020-08-03 11:28:49 +01:00
Adam Fowler fd86446eff Renamed parameter to sync with CryptoKit 2020-02-01 11:30:22 +00:00
Adam Fowler 38ab4efd6c Added SymmetricKey 2020-02-01 11:06:51 +00:00
Adam Fowler 81dc1183ed Move crypto code to AWSCrypto module 2020-02-01 10:42:44 +00:00
Adam Fowler d47c6c71ee MInor optimisations.
Don't search for values in the headers I've just placed in the headers when I have the value to hand.
2019-11-27 19:16:50 +00:00
Adam Fowler 00d6fdf683 Minor optimisations 2019-11-27 17:48:10 +00:00
Adam Fowler d8917d8684 uri encode session token 2019-11-07 01:55:25 +00:00
Adam Fowler 350b266a4b Make members public 2019-09-02 08:04:43 +01:00
Adam Fowler 72077208d9 Trim whitespace from headers when generating canonical request 2019-09-01 12:49:23 +01:00
Adam Fowler 892b4c87cc Move request.swift to separate target HTTPClientAWSSigner 2019-08-31 23:31:00 +01:00
Adam Fowler 2afe2385b7 Move all AsyncHTTPClient code to request.swift 2019-08-31 23:06:48 +01:00
Adam Fowler 8cd6b1a205 Apparently Data.withContiguousStorageIfAvailable() doesn't work
Use withUnsafeBytes instead.
Added a test to ensure we get the same signature from string, data and byteBuffer.
Also added '+' as a character to be percent encoded.
2019-08-30 17:20:16 +01:00
Adam Fowler 8afb9065b2 Extend HTTPClient not HTTPClient.Request 2019-08-30 12:12:39 +01:00
Adam Fowler 6208524c15 Added Linux support 2019-08-30 11:43:59 +01:00
Adam Fowler 05bb768867 Removed SharedCredential as it brings in other dependencies
The purpose of this lib is not to supply credentials
2019-08-30 11:18:58 +01:00
Adam Fowler 70277f6976 Stopped trying to edit HTTPClient.Request
Instead construct signed request from url, method, headers and body
Added helper functions to HTTPClient.Request extension
2019-08-30 11:09:56 +01:00
Adam Fowler 0747cc22e5 Initial commit of code 2019-08-30 08:01:35 +01:00