Name : ghc-s3-signer
| |
Version : 0.3.0.0
| Vendor : openSUSE
|
Release : bp150.2.6
| Date : 2018-07-30 20:53:51
|
Group : Development/Libraries/Haskell
| Source RPM : ghc-s3-signer-0.3.0.0-bp150.2.6.src.rpm
|
Size : 0.08 MB
| |
Packager : https://bugs_opensuse_org
| |
Summary : Pre-signed Amazon S3 URLs
|
Description :
s3-signer creates cryptographically secure Amazon S3 URLs that expire within a user-defined period. It allows uploading and downloading of content from Amazon S3. Ideal for AJAX direct-to-s3 uploads via CORS and secure downloads. Web framework agnostic with minimal dependencies.
> module Main where > import Network.S3 > main :: IO () > main = print =< < generateS3URL credentials request > where > credentials = S3Keys \"< public-key-goes-here>\" \"< secret-key-goes-here>\" > request = S3Request S3GET \"application/extension\" \"bucket-name\" \"file-name.extension\" 3 -- three seconds until expiration
Result
> S3URL \"https://bucket-name.s3.amazonaws.com/file-name.extension?AWSAccessKeyId=< public-key-goes-here>&Expires=1402346638&Signature=1XraY%{2}Bhp117I5CTKNKPc6%{2}BiihRA%{3}D\".
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/openSUSE:/Backports:/SLE-15/standard/x86_64 |