1
0
Fork 0
mirror of https://github.com/Luzifer/cloudkeys-go.git synced 2024-11-10 07:00:08 +00:00
cloudkeys-go/vendor/github.com/aws/aws-sdk-go/example/service/cloudfront/signCookies
Knut Ahlers 7581358922
Switch to dep for vendoring, update dependencies
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2017-12-08 13:03:10 +01:00
..
README.md Switch to dep for vendoring, update dependencies 2017-12-08 13:03:10 +01:00
signCookies.go Switch to dep for vendoring, update dependencies 2017-12-08 13:03:10 +01:00

Example

This example shows how the CloudFront CookieSigner can be used to generate signed cookies to provided short term access to restricted resourced fronted by CloudFront.

Usage

Makes a request for object using CloudFront cookie signing, and outputs the contents of the object to stdout.

go run -tags example signCookies.go -file <privkey file>  -id <keyId> -r <resource pattern> -g <object to get>