name:                yesod-auth-basic
version:             0.1.0.3
license:             BSD3
license-file:        LICENSE
author:              Christopher Reichert
maintainer:          creichert07@gmail.com
copyright:           (c) 2015, Christopher Reichert
category:            Web
build-type:          Simple
cabal-version:       >=1.10
synopsis:            Yesod Middleware for HTTP Basic Authentication
description:
 An efficient Yesod middleware middleware for HTTP Basic
 Authentication.
 .
 Utilizes Yesod request-local caching mechanisms to store valid auth
 credentials found in the Authorization header.


source-repository head
  type:     git
  location: git://github.com/creichert/yesod-auth-basic.git


library
  exposed-modules:     Yesod.Auth.Http.Basic
  ghc-options:         -Wall
  default-language:    Haskell2010
  build-depends:       base               == 4.*
                     , base64-bytestring
                     , bytestring
                     , exceptions
                     , text
                     , yesod
                     , wai
                     , word8
                     , monad-control

  if impl(ghc < 7.6)
    build-depends:
      iproute < 1.4


test-suite spec
  type:                exitcode-stdio-1.0
  main-is:             Spec.hs
  hs-source-dirs:      test/
  other-modules:       YesodAuthHttpBasicSpec
  ghc-options:         -Wall -threaded
  default-language:    Haskell2010
  build-depends:       base                 == 4.*
                     , yesod
                     , yesod-auth-basic
                     , yesod-test
                     , hspec                >= 1.3
                     , text