packages feed

oidc-client-0.7.0.0: oidc-client.cabal

name:               oidc-client
version:            0.7.0.0
synopsis:           OpenID Connect 1.0 library for RP
homepage:           https://github.com/krdlab/haskell-oidc-client
stability:          experimental
license:            MIT
license-file:       LICENSE
author:             Sho Kuroda
maintainer:         Sho Kuroda <krdlab@gmail.com>
copyright:          (c) 2015 Sho Kuroda
category:           Web
build-type:         Simple
cabal-version:      >=1.10
description:
    This package supports implementing of an OpenID Connect 1.0 Relying Party.
    .
    Examples: <https://github.com/krdlab/haskell-oidc-client/tree/master/examples>
extra-source-files: CHANGELOG.md
                  , README.md

source-repository head
    type: git
    location: git://github.com/krdlab/haskell-oidc-client.git

flag network-uri
  default: True

flag build-examples
  default: False

library
  hs-source-dirs:      src
  default-language:    Haskell2010
  ghc-options:         -Wall
  exposed-modules:
      Web.OIDC.Client
    , Web.OIDC.Client.CodeFlow
    , Web.OIDC.Client.IdTokenFlow
    , Web.OIDC.Client.Discovery
    , Web.OIDC.Client.Discovery.Issuers
    , Web.OIDC.Client.Discovery.Provider
    , Web.OIDC.Client.Settings
    , Web.OIDC.Client.Tokens
    , Web.OIDC.Client.Types
  other-modules:
      Web.OIDC.Client.Internal
  build-depends:
      base              >=4.7 && <5
    , bytestring        >=0.10
    , text              >=1.2 && <1.3
    , aeson             >=0.10
    , scientific
    , attoparsec        >=0.12
    , exceptions
    , http-client
    , tls               >=1.3.2
    , http-client-tls
    , jose-jwt          >=0.7
    , cryptonite
    , time
  if flag(network-uri)
    build-depends: network-uri >=2.6, network >=2.6
  else
    build-depends: network-uri <2.6, network <2.6

test-suite oidc-client-spec
  type:                 exitcode-stdio-1.0
  hs-source-dirs:       test, src
  default-language:     Haskell2010
  ghc-options:          -Wall
  main-is:              Spec.hs
  other-modules:
      Spec.Client
    , Spec.Client.Discovery
    , Spec.Client.Internal

    -- NOTE: The following modules are needed for using Web.OIDC.Client.Internal.
    , Web.OIDC.Client
    , Web.OIDC.Client.CodeFlow
    , Web.OIDC.Client.Discovery
    , Web.OIDC.Client.Discovery.Issuers
    , Web.OIDC.Client.Discovery.Provider
    , Web.OIDC.Client.Settings
    , Web.OIDC.Client.Internal
    , Web.OIDC.Client.Tokens
    , Web.OIDC.Client.Types
  build-depends:
      base
    , aeson
    , hspec
    , oidc-client
    , bytestring
    , text
    , http-types
    , http-client
    , http-client-tls
    , aeson
    , scientific
    , jose-jwt
    , cryptonite
    , exceptions
    , time
    , network-uri

executable scotty-example
  main-is:          Main.hs
  default-language: Haskell2010
  hs-source-dirs:   examples/scotty/
  ghc-options:      -Wall
  if flag(build-examples)
    build-depends:
        base                >=4.7 && <5
      , oidc-client
      , aeson
      , bytestring
      , text
      , containers
      , transformers
      , mtl
      , wai-extra
      , scotty
      , scotty-cookie
      , blaze-html
      , cprng-aes
      , crypto-random
      , base64-bytestring
      , http-types
      , http-client
      , tls                 >=1.3.2
      , http-client-tls
  else
    buildable: False