andreypopp / dream-oauth2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Running the example app

DEPRECATED, SEE: dream-social-login

Create a new OAuth app and initialize the following environment variables:

export OAUTH2_CLIENT_ID="..."
export OAUTH2_CLIENT_SECRET="..."
export OAUTH2_REDIRECT_URI="http://localhost:8080/oauth2/callback"

Depending on how you run the example app you might need to customize OAUTH2_REDIRECT_URI value - it should be the one GitHub could reach the app.

Initialize opam environment:

export OPAMSWITCH="$PWD"
make init
eval $(opam env)

Start the app:

make start

About

License:MIT License


Languages

Language:OCaml 97.9%Language:Makefile 2.1%