Commit Graph

47 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 1867819c9f Update README badges 2020-08-03 14:12:58 +01:00
Adam Fowler d5c1df536a
Remove HTTPClientAWSSigner target (#4)
* Remove HTTPClientAWSSigner target
Was such a small bit of code but brought in two packages that may be unnecessary for many people
2020-08-03 11:53:00 +01:00
Adam Fowler 15ac1d4a76 Update Dockerfile to cache packages, remove docker-compose setup 2020-08-03 11:51:23 +01:00
Adam Fowler 09c9e0eb3e Rename package to aws-signer-v4 2020-08-03 11:41:16 +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 f28d6f6503
Remove release from CI test 2020-02-01 17:23:16 +00:00
Adam Fowler c8e382cd9a Update README for latest code 2020-02-01 17:14:44 +00:00
Adam Fowler 6f799e7a9a Fixed typo 2020-02-01 14:17:41 +00:00
Adam Fowler e14efed87e Added SHA1, SHA384 and SHA512 for completeness 2020-02-01 12:23:59 +00: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 8c14c703ee
Add badges to readme 2019-11-27 19:46:05 +00:00
Adam Fowler 423e346adf
Rename main.yml to swift.yml 2019-11-27 19:30:42 +00:00
Adam Fowler 85daf29646
Github action for swift build and test 2019-11-27 19:28:31 +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 f0d6f71105 Added performance tests 2019-11-27 17:47:53 +00:00
Adam Fowler d8917d8684 uri encode session token 2019-11-07 01:55:25 +00:00
Adam Fowler 92073bb582 Added Dockerfile and fixed test dependency 2019-11-07 01:17:49 +00:00
Adam Fowler be924f666b Update travis yml to include zlib 2019-11-06 10:28:49 +00:00
Adam Fowler 5b60d77978 async-http-client version 1.0.0 2019-11-06 10:20:25 +00:00
Adam Fowler 014022b373
Update README.md 2019-09-03 07:36:36 +01: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 211ad86039 Updated comment in Package.swift 2019-09-01 08:08:35 +01:00
Adam Fowler 904f38425b Added AWSSigner package dependency swift-nio
and AWSSigner target dependency NIOHTTP1
2019-09-01 08:07:29 +01:00
Adam Fowler c541f15364 Include testBodyData in Linux tests 2019-09-01 07:58:18 +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 748a78686b
Add AsyncHttpClient section to Readme 2019-08-31 22:49:46 +01:00
Adam Fowler 63b2ed3c22
Remove mention of AsyncHTTPClient from readme 2019-08-31 22:30:19 +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 28f96033bd
Create LICENSE 2019-08-30 15:31:20 +01:00
Adam Fowler 5e50a3e38f
Update README.md 2019-08-30 15:16:02 +01:00
Adam Fowler 39cc876f46
Update README.md 2019-08-30 15:13:55 +01:00
Adam Fowler 4d9e40f5bd
Update README.md 2019-08-30 14:55:48 +01:00
Adam Fowler 8afb9065b2 Extend HTTPClient not HTTPClient.Request 2019-08-30 12:12:39 +01:00
Adam Fowler 28fe5ce3cb Added travis config 2019-08-30 12:00:15 +01:00
Adam Fowler 2b0f72093a Remove Package.resolved as it different for different platforms 2019-08-30 11:56:33 +01:00
Adam Fowler 379c1e7641 Getting tests working on Linux 2019-08-30 11:54:53 +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
Adam Fowler cacaf4e437 Initial Commit 2019-08-30 08:01:17 +01:00