AwsSign is a Swift library that enables you to sign URLRequests using Signature Version 4 process. More details on this are available from the AWS documentation.
This package builds with Swift Package Manager. Ensure you have installed and activated the latest Swift 5.2 tool chain.
Quick Start
To use AwsSign, modify the Package.swift file and add following dependency:
Then import the AwsSign library into the swift source code:
import AwsSign
Usage
The current release provides a URLRequest extension, containing mutating func sign(accessKeyId: String, secretAccessKey: String) throws method, which you can use on your request instance to perform Signature Version 4 process:
AwsSign - Swift
AwsSign is a Swift library that enables you to sign
URLRequest
s using Signature Version 4 process. More details on this are available from the AWS documentation.This package builds with Swift Package Manager. Ensure you have installed and activated the latest Swift 5.2 tool chain.
Quick Start
To use AwsSign, modify the Package.swift file and add following dependency:
Then import the
AwsSign
library into the swift source code:Usage
The current release provides a
URLRequest
extension, containingmutating func sign(accessKeyId: String, secretAccessKey: String) throws
method, which you can use on your request instance to perform Signature Version 4 process: