chris-martin / haskell-oidc-client

OpenID Connect 1.0 client (RP) library for Haskell

Home Page:https://hackage.haskell.org/package/oidc-client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OpenID Connect 1.0 library for Relying Party

Testing

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.

About

OpenID Connect 1.0 client (RP) library for Haskell

https://hackage.haskell.org/package/oidc-client

License:MIT License


Languages

Language:Haskell 97.1%Language:Nix 2.9%