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

ProgrammingLab/prolab-accounts

Repository files navigation

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

About

部員紹介、認証基盤

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages