aws_cloudfront_signed_url 0.0.1
aws_cloudfront_signed_url: ^0.0.1 copied to clipboard

Create a signed AWS cloudfront url using a custom policy

aws_cloudfront_signed_url #

Create a signed AWS CloudFront URL using a custom policy

Example #

final String privateKey = """-----BEGIN RSA PRIVATE KEY-----
Key123
-----END RSA PRIVATE KEY-----""";
String url = 'http://d111111abcdef8.cloudfront.net/images/horizon.jpg';
String cloudFrontSignedUrl = await AWSCloudFrontSignedUrl(
  keyPairId: "K2JCJMDEHXQW5F",
  privateKey: privateKey,
).signUrl(
  resourceUrl: url,
  ipAddress: "0.0.0.0/32",
  dateLessThan: DateTime(2022,3,1),
  dateGreaterThan: DateTime(2021,3,1),
);
0
likes
80
pub points
0%
popularity

Create a signed AWS cloudfront url using a custom policy

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

tarekmtolba@gmail.com

License

MIT (LICENSE)

Dependencies

flutter, pointycastle, rsa_encrypt

More

Packages that depend on aws_cloudfront_signed_url