awscr-signer
awscr-signer
Crystal interface for AWS Signing.
Supports signing Crystal HTTP::Request
objects and generating presigned post form for browser or programmatic uploading. See Browser-Based Uploads Using POST and Authenticating Requests (AWS Signature Version 4) for additional details.
Installation
Add this to your application's shard.yml
:
dependencies:
awscr-signer:
github: taylorfinnell/awscr-signer
Usage
Create a Signer::V4
object.
signer = Awscr::Signer::V4.new("service", "region", "key", "secret")
Signing an HTTP::Request
.
signer.sign(request)
Signing an String
.
signer.sign("my string")
Presign a HTTP::Request
.
signer.presign(request)
S3
For S3 specific support see awscr-s3
Known Limitations
The following items are known issues.
- The request URI can not contain repeating slashes.
- The request headers can not have new line separted values.
- The request path can not contain spaces.