forked from pjones/openid-connect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
openid-connect.cabal
162 lines (148 loc) · 4.75 KB
/
openid-connect.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
cabal-version: 2.2
name: openid-connect
version: 0.1.1
license: BSD-2-Clause
license-file: LICENSE
author: Peter Jones <pjones@devalot.com>
maintainer: Peter Jones <pjones@devalot.com>
copyright: Copyright (c) 2020-2021 Peter Jones
homepage: https://github.com/pjones/openid-connect
bug-reports: https://github.com/pjones/openid-connect/issues
category: Network
tested-with: GHC ==8.6.5 || ==8.8.4 || ==8.10.2
synopsis:
An OpenID Connect library that does all the heavy lifting for you
description:
This package provides an OpenID Connect 1.0 compliant interface for clients and
some useful types and functions for providers.
.
The primary goals of this package are security and usability.
.
To get started, take a look at the "OpenID.Connect.Client.Flow.AuthorizationCode"
module.
--------------------------------------------------------------------------------
extra-source-files:
README.md
CHANGES.md
example/*.sh
--------------------------------------------------------------------------------
source-repository head
type: git
location: https://github.com/pjones/openid-connect.git
--------------------------------------------------------------------------------
flag example
description: Build the example application
manual: True
default: False
--------------------------------------------------------------------------------
common options
default-language: Haskell2010
ghc-options:
-Wall -Werror=incomplete-record-updates
-Werror=incomplete-uni-patterns -Werror=missing-home-modules
-Widentities -Wmissing-export-lists -Wredundant-constraints
--------------------------------------------------------------------------------
common extensions
default-extensions:
ConstraintKinds
DataKinds
DefaultSignatures
DeriveAnyClass
DeriveFunctor
DeriveGeneric
DerivingVia
ExistentialQuantification
FlexibleContexts
FlexibleInstances
FunctionalDependencies
GeneralizedNewtypeDeriving
LambdaCase
MultiParamTypeClasses
MultiWayIf
NamedFieldPuns
OverloadedStrings
RankNTypes
RecordWildCards
ScopedTypeVariables
StandaloneDeriving
TemplateHaskell
TupleSections
TypeApplications
TypeFamilies
TypeOperators
--------------------------------------------------------------------------------
common dependencies
build-depends:
, aeson >=1.3 && <1.6
, base >=4.9 && <5.0
, bytestring >=0.10 && <0.12
, case-insensitive ^>=1.2
, cookie ^>=0.4
, cryptonite >=0.25 && <1.0
, http-client >=0.6 && <0.8
, http-types ^>=0.12
, jose ^>=0.8
, lens >=4.0 && <5.1
, memory >=0.14 && <1.0
, mtl ^>=2.2
, network-uri >=2.6 && <2.8
, text ^>=1.2
, time >=1.8 && <2.0
, unordered-containers ^>=0.2
--------------------------------------------------------------------------------
library
import: options, extensions, dependencies
hs-source-dirs: src
exposed-modules:
OpenID.Connect.Authentication
OpenID.Connect.Client.DynamicRegistration
OpenID.Connect.Client.Flow.AuthorizationCode
OpenID.Connect.Client.Provider
OpenID.Connect.Provider.Key
OpenID.Connect.Scope
OpenID.Connect.TokenResponse
other-modules:
OpenID.Connect.Client.Authentication
OpenID.Connect.Client.HTTP
OpenID.Connect.Client.TokenResponse
OpenID.Connect.Discovery
OpenID.Connect.JSON
OpenID.Connect.Registration
--------------------------------------------------------------------------------
executable example
import: options, extensions, dependencies
hs-source-dirs: example
main-is: Main.hs
other-modules:
Auth
Discover
Options
Util
if !flag(example)
buildable: False
build-depends:
, blaze-html >=0.9
, http-client-tls >=0.3
, openid-connect
, optparse-applicative >=0.14
, servant >=0.16
, servant-blaze >=0.9
, servant-server >=0.16
, warp >=3.2
, warp-tls >=3.2
--------------------------------------------------------------------------------
test-suite test
import: options, extensions, dependencies
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Main.hs
build-depends:
, openid-connect
, tasty >=1.1 && <1.5
, tasty-hunit ^>=0.10
other-modules:
Client
Client.AuthorizationCodeTest
Client.ProviderTest
DiscoveryTest
HttpHelper