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.
$ cabal update
$ cabal install oidc-client
The documentation is available in Hackage or this URL.
examples/scotty
is a runnable code. If you try to run it, execute commands as follows:
$ cabal sandbox init
$ cabal install --only-dependencies -fbuild-examples
$ cabal configure -fbuild-examples
$ cabal build
and then
$ export OPENID_CLIENT_ID="Your client ID"
$ export OPENID_CLIENT_SECRET="Your client secret"
$ cabal run scotty-example
You can access to http://localhost:3000/login.