cloudfront_signer v0.1.0 CloudfrontSigner
Elixir implementation of cloudfront's signed url algorithm. Basic usage is:
CloudfrontSigner.Distribution.from_config(:scope, :key)
|> CloudfrontSigner.sign("some/path", [arg: "val"], some_expiry)
Link to this section Summary
Functions
Signs a url for the given Distribution.t
struct constructed from the path
and query_params
provided. expiry
is in seconds
Link to this section Functions
Link to this function
sign(distribution, path, query_params \\ [], expiry)
sign(distribution, path, query_params \\ [], expiry)
sign(CloudfrontSigner.Distribution.t(), binary(), list(), integer()) :: binary()
sign(CloudfrontSigner.Distribution.t(), binary(), list(), integer()) :: binary()
Signs a url for the given Distribution.t
struct constructed from the path
and query_params
provided. expiry
is in seconds.
Link to this function