-
Notifications
You must be signed in to change notification settings - Fork 9
/
openid-connect.cabal
162 lines (148 loc) · 4.87 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.2.0
license: BSD-2-Clause
license-file: LICENSE
author: Peter Jones <[email protected]>
maintainer: Peter Jones <[email protected]>
copyright: Copyright (c) 2020-2023 Peter Jones
homepage: https://github.com/pjones/openid-connect
bug-reports: https://github.com/pjones/openid-connect/issues
category: Network
tested-with: GHC ==8.10.7 || ==9.0.2 || ==9.2.5 || ==9.4.4
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:
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 && <2.2
, base >=4.9 && <5.0
, bytestring >=0.10 && <0.12
, case-insensitive ^>=1.2
, containers ^>=0.6
, cookie ^>=0.4
, cryptonite >=0.25 && <1.0
, http-client >=0.6 && <0.8
, http-types ^>=0.12
, jose >=0.10 && <0.11
, lens >=4.0 && <5.3
, memory >=0.14 && <1.0
, mtl >=2.2 && <2.4
, network-uri >=2.6 && <2.8
, text >=1.2 && <2.1
, 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 && <0.18
, servant >=0.16 && <0.20
, servant-blaze ^>=0.9
, servant-server >=0.16 && <0.20
, warp >=3.2 && <3.4
, warp-tls >=3.2 && <3.4
--------------------------------------------------------------------------------
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