Barong OAuth server
Latest commit 36417c4 Oct 29, 2018
Permalink
Failed to load latest commit information.
app Add grape logger middleware Oct 31, 2018
bin Revert "Generate api on bump stage" Sep 20, 2018
ci Update travis CI and fix version bumping (#507) Jun 27, 2018
config Add phone verification rate limit for API Oct 31, 2018
db Dont let not active accounts to sign in (#608) Sep 21, 2018
docs Update api_keys.md (#592) Sep 21, 2018
lib Add a stronger validation for passwords Oct 31, 2018
log rails new --database=mysql --skip-turbolinks --skip-coffee barong Nov 23, 2017
public [WIP] Verification process design (Identity, phone, documents) (#107) Feb 13, 2018
spec Replace Faker::Avatar.image to Faker::Company.logo due to server error Oct 31, 2018
tmp rails new --database=mysql --skip-turbolinks --skip-coffee barong Nov 23, 2017
vendor [WIP] Verification process design (Identity, phone, documents) (#107) Feb 13, 2018
.codeclimate.yml Verify captcha serverside if it's enabled (#617) Oct 16, 2018
.dockerignore Add helm chart to docker ignore files Jan 29, 2018
.gitignore Compute code coverage report (#542) Jun 27, 2018
.rspec Add TravisCI configuration & RSpec + Capybara boilerplate. (#8) Jan 9, 2018
.rubocop.yml Feature/admin disable 2fa (#533) Jun 27, 2018
.ruby-version Update ruby version to v2.5.1 Sep 5, 2018
.travis.yml Compute code coverage report (#542) Jun 27, 2018
.widdershins.json [ci skip] Release 1.7.0 (#384) Apr 20, 2018
CHANGELOG.md Release Barong v1.0.0 Feb 19, 2018
Dockerfile Update ruby version to v2.5.1 Sep 5, 2018
Gemfile Add rack-attack and some API usage limits Oct 31, 2018
Gemfile.lock Add rack-attack and some API usage limits Oct 31, 2018
LICENSE.md Change license to Apache 2.0 (#79) Jan 31, 2018
README.md README.md update steps to get project running (#578) Sep 21, 2018
Rakefile Adding sneaker gem Feb 21, 2018
config.ru Initialize Devise missing views and routes (#9) Jan 10, 2018
package.json Rake task to generate swagger-slate docs (#204) Feb 28, 2018
yarn.lock Rake task to generate swagger-slate docs (#204) Feb 28, 2018

README.md

Barong

Build Status Maintainability

Overview

Barong is oAuth server for peatio.tech stack.

Development

Prerequisites:

  • Ruby version: 2.5.1
  • Bundler preinstalled
  • MySQL preinstalled
  1. Install RubyGems dependencies
bundle install
  1. Copy initialisation files
bin/init_config
  1. Create database and run migrations
bundle exec rake db:create db:migrate
  1. Install JS dependencies
yarn install
  1. Start local server
bundle exec rails server

Test client application

You can find example of Barong usage here: Barong Test Client App

How to get client app credentials

Barong Levels

In the process of verification Barong assign different levels to accounts

  • Level 0 is default account level
  • Level 1 will apply after email verification
  • Level 2 will apply after phone verification
  • Level 3 will apply after identity & document verification

License

Barong is released under the terms of the Apache License 2.0.