rclone/vendor/github.com/aws/aws-sdk-go/example/service/cloudfront/signCookies
2017-05-11 15:39:54 +01:00
..
README.md Switch to using the dep tool and update all the dependencies 2017-05-11 15:39:54 +01:00
signCookies.go Switch to using the dep tool and update all the dependencies 2017-05-11 15:39:54 +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>