Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/krdlab/haskell-oidc-client

OpenID Connect 1.0 client (RP) library for Haskell
https://github.com/krdlab/haskell-oidc-client

haskell openid-connect

Last synced: 9 days ago
JSON representation

OpenID Connect 1.0 client (RP) library for Haskell

Awesome Lists containing this project

README

        

# OpenID Connect 1.0 library for Relying Party

[![Testing](https://github.com/krdlab/haskell-oidc-client/workflows/Testing/badge.svg)](https://github.com/krdlab/haskell-oidc-client/actions?query=workflow%3ATesting)

This package supports implementing of an OpenID Connect 1.0 Relying Party. It's written in Haskell.

This package uses [jose-jwt](http://github.com/tekul/jose-jwt) package for decoding a received tokens.

## Usage

```sh
$ cabal update
$ cabal install oidc-client
```

The documentation is available in [Hackage](https://hackage.haskell.org/package/oidc-client).

## Run example

`examples/scotty` is a runnable code. If you try to run it, execute commands as follows:

```sh
$ stack build --flag oidc-client:build-examples
```

and then

```sh
$ 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 .