Skip to content
This repository was archived by the owner on Feb 4, 2021. It is now read-only.

Latest commit

 

History

History
56 lines (45 loc) · 1.3 KB

README.md

File metadata and controls

56 lines (45 loc) · 1.3 KB

prolab-accounts

Build Status Go Report Card

Requirements

  • Docker

Usage

Configuration

$ cp .env.sample .env
$ cp sqlboiler.toml.sample sqlboiler.toml

Schema migration for database

$ docker-compose up -d pg
$ scripts/setup-db

Run the backend server

$ docker-compose up

OAuth 2.0 Authorization Code Flow

$ docker-compose exec hydra \
    hydra clients create \
    --endpoint http://localhost:4445 \
    --id prolab-test-client \
    --name テストクライアント \
    --secret secret \
    --grant-types authorization_code,refresh_token \
    --response-types code,id_token \
    --scope read_profile,write_profile \
    --callbacks http://127.0.0.1:5555/callback
$ docker-compose exec hydra \
    hydra token user \
    --client-id prolab-test-client \
    --client-secret secret \
    --endpoint http://localhost:4444/ \
    --port 5555 \
    --scope read_profile,write_profile

Go to http://127.0.0.1:5555/

Create user

$ docker-compose exec accounts ./create-user