No release in over 3 years
Low commit activity in last 3 years
The OmniAuth strategy for authenticating users using Barong (open-source OAuth2 and KyC server powered by Doorkeeper).
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.7

Runtime

>= 4.0, < 6.0
 Project Readme

OmniAuth strategy for Barong OAuth2

Usage

config/initializers/omniauth.rb:

# encoding: UTF-8
# frozen_string_literal: true

Rails.logger.info { "Enabling Barong OAuth2." }
require "omniauth-barong-oauth2"
Rails.application.config.middleware.use OmniAuth::Builder do
provider :barong,
          ENV.fetch("BARONG_ROOT_URL"), # Can be callable.
          ENV.fetch("BARONG_CLIENT_ID"),
          ENV.fetch("BARONG_CLIENT_SECRET"),
          authorize_path: "/oauth/authorize", # Optional.
          account_path:   "/oauth/account"  # Optional.
end