@hackage oidc-client0.8.0.0
OpenID Connect 1.0 library for RP
Categories
License
MIT
Maintainer
Sho Kuroda <krdlab@gmail.com>
Links
Versions
Installation
Dependencies (15)
- aeson >=0.10
- attoparsec >=0.12
- base >=4.7 && <5
- bytestring >=0.10
- crypton
- exceptions Show all…
Dependents (6)
@hackage/yesod-auth-lti13, @hackage/kubernetes-client, @hackage/acme-everything, @hackage/lti13, @hackage/yesod-auth-oidc, @hackage/kubernetes-api-client
Package Flags
network-uri(on by default)
build-examples(off by default)
OpenID Connect 1.0 library for Relying Party
This package supports implementing of an OpenID Connect 1.0 Relying Party. It's written in Haskell.
This package uses jose-jwt package for decoding a received tokens.
Usage
$ cabal update
$ cabal install oidc-client
The documentation is available in Hackage.
Run example
examples/scotty is a runnable code. If you try to run it, execute commands as follows:
$ stack build --flag oidc-client:build-examples
and then
$ export OPENID_CLIENT_BASE_URL="http://localhost:3000"
$ export OPENID_CLIENT_ID="Your client ID"
$ export OPENID_CLIENT_SECRET="Your client secret"
$ stack exec scotty-example
You can access to http://localhost:3000/login.