packages feed

aws-cloudfront-signed-cookies-0.2.0.2: aws-cloudfront-signed-cookies.cabal

name: aws-cloudfront-signed-cookies
version: 0.2.0.2

synopsis: Generate signed cookies for AWS CloudFront
category: Network, AWS, Cloud

description: One way to [serve private content through AWS CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html) is to use [signed cookies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-signed-cookies.html). This package helps you generate signed cookies [using a custom IAM policy](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-setting-signed-cookie-custom-policy.html) which may include a range of time for which the cookie is valid and an IP address restriction.

homepage:    https://github.com/typeclasses/aws-cloudfront-signed-cookies
bug-reports: https://github.com/typeclasses/aws-cloudfront-signed-cookies/issues

author:     Chris Martin
maintainer: Chris Martin, Julie Moronuki

copyright: 2018 Typeclass Consulting, LLC
license: MIT
license-file: license.txt

build-type: Simple
cabal-version: >= 1.10

tested-with: GHC==8.8.1, GHC==8.6.3, GHC==8.4.4, GHC==8.2.2

extra-source-files:
    readme.md
  , changelog.md

source-repository head
  type: git
  location: https://github.com/typeclasses/aws-cloudfront-signed-cookies

library
  default-language: Haskell2010
  hs-source-dirs: library

  exposed-modules:
      Network.AWS.CloudFront.SignedCookies
    , Network.AWS.CloudFront.SignedCookies.CLI
    , Network.AWS.CloudFront.SignedCookies.CLI.Decode
    , Network.AWS.CloudFront.SignedCookies.CLI.Sign
    , Network.AWS.CloudFront.SignedCookies.Crypto
    , Network.AWS.CloudFront.SignedCookies.Encoding
    , Network.AWS.CloudFront.SignedCookies.Policy
    , Network.AWS.CloudFront.SignedCookies.Types

  other-modules:
      Network.AWS.CloudFront.SignedCookies.CLI.Internal
    , Network.AWS.CloudFront.SignedCookies.Crypto.Internal

  build-depends:
      aeson
    , aeson-pretty
    , asn1-encoding
    , asn1-types
    , base >=4.7 && <5
    , base64-bytestring
    , bytestring
    , cookie
    , cryptonite
    , lens
    , lens-aeson
    , optparse-applicative
    , pem
    , text
    , time
    , unordered-containers
    , vector

  -- the introduction of Data.Time.Clock.nominalDay
  build-depends: time >= 1.8

executable aws-cloudfront-signed-cookies
  default-language: Haskell2010
  hs-source-dirs: executables
  main-is: aws-cloudfront-signed-cookies.hs

  build-depends:
      aws-cloudfront-signed-cookies
    , base >=4.7 && <5

test-suite hedgehog
  default-language: Haskell2010
  hs-source-dirs: test
  type: exitcode-stdio-1.0
  main-is: hedgehog.hs
  ghc-options: -threaded
  build-depends:
      aws-cloudfront-signed-cookies
    , base >=4.7 && <5
    , hedgehog
    , neat-interpolation