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-clientThe documentation is available in Hackage.
examples/scotty is a runnable code. If you try to run it, execute commands as follows:
$ stack build --flag oidc-client:build-examplesand 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-exampleYou can access to http://localhost:3000/login.