packages feed

access-token-provider-0.1.0.0: access-token-provider.cabal

name:                access-token-provider
version:             0.1.0.0
synopsis:            Provides Access Token for Services
description:         Access Token Provider supporting multiple provider backends,
                     including OAuth2 Resource Owner Password Credentials Grant,
                     file-based token access (e.g. for Kubernetes) and fetching
                     tokens from the environment (e.g. for local testing). The
                     package is configurable via environment variables.
homepage:            https://github.com/mtesseract/access-token-provider#readme
license:             BSD3
license-file:        LICENSE
author:              Moritz Clasmeier
maintainer:          mtesseract@silverratio.net
copyright:           (c) 2018 Moritz Clasmeier
category:            Data
build-type:          Simple
extra-source-files:  README.md
cabal-version:       >=1.10

library
  hs-source-dirs:      src
  ghc-options:         -Wall
  exposed-modules:     Security.AccessTokenProvider
                     , Security.AccessTokenProvider.Internal
                     , Security.AccessTokenProvider.Internal.Types
                     , Security.AccessTokenProvider.Internal.Lenses
                     , Security.AccessTokenProvider.Internal.Util
                     , Security.AccessTokenProvider.Internal.Providers.Common
                     , Security.AccessTokenProvider.Internal.Providers.Fixed
                     , Security.AccessTokenProvider.Internal.Providers.File
                     , Security.AccessTokenProvider.Internal.Providers.OAuth2.Ropcg
  build-depends:       base >= 4.7 && < 5
                     , containers
                     , text
                     , bytestring
                     , exceptions
                     , aeson
                     , http-types
                     , aeson-casing
                     , http-client
                     , http-client-tls
                     , unliftio-core
                     , unliftio
                     , katip
                     , th-format >= 0.1.2.0
                     , lens
                     , lens-aeson
                     , safe-exceptions
                     , base64-bytestring
                     , filepath
                     , stm
                     , mtl
                     , transformers
                     , random
  default-language:    Haskell2010


test-suite access-token-provider-test
  type:                exitcode-stdio-1.0
  hs-source-dirs:      tests
  main-is:             Spec.hs
  other-modules:       Security.AccessTokenProvider.Test
                     , Security.AccessTokenProvider.Internal.Test
                     , Security.AccessTokenProvider.Internal.Util.Test
                     , Security.AccessTokenProvider.Internal.Providers.Test
                     , Test
  build-depends:       base
                     , access-token-provider
                     , aeson
                     , text
                     , tasty
                     , tasty-hunit
                     , katip
                     , safe-exceptions
                     , uuid
                     , random
                     , lens
                     , containers
                     , exceptions
                     , bytestring
                     , mtl
                     , http-client
                     , http-types
                     , th-format
                     , unliftio-core
                     , unliftio
                     , safe-exceptions
  ghc-options:         -threaded -rtsopts -with-rtsopts=-N
  default-language:    Haskell2010
  default-extensions:  OverloadedStrings

source-repository head
  type:     git
  location: https://github.com/mtesseract/access-token-provider