peterklingelhofer / justifay-id

Justifay ID server

Home Page:https://id.justifay.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Justifay ID Server

Justifay's ID server is a Go OAuth2 Server based on RichardKnop/go-oauth2-server.

See also

Setup

There are three setup tasks when working with the ID server

  1. Setup the config store
  2. Setup the data stores
  3. Compile the server

Config Store

The ID server uses etcd as a config store.

Install etcd (if needed, and platform specific) and run it

brew install etcd
etcd

Load the sample config and verify it

etcdctl put /config/go_oauth2_server.json "$(cat ./config.sample.json)"
etcdctl get /config/go_oauth2_server.json

Data Store

At some point, we will be merging both the ID server and User API repos. Until then, the ID server needs a direct database connection to the User API.

User API

(How to setup the User API locally, check out user-api github repository)

Compile

To compile the server run

go install .

Run

Run the server

go-oauth2-server runserver

Deploy

(How to deploy to staging and production using docker)

Develop

Add a git hook for proper formatting

./add_gofmt_hook.sh

About

Justifay ID server

https://id.justifay.com

License:Mozilla Public License 2.0


Languages

Language:Go 53.2%Language:JavaScript 33.6%Language:HTML 11.3%Language:CSS 1.1%Language:Dockerfile 0.3%Language:Shell 0.3%Language:Makefile 0.2%