No release in over a year
Gorgias OAuth2 strategy for OmniAuth
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 12.3.3
~> 3.9, >= 3.9.0

Runtime

 Project Readme

Gorgias OmniAuth

Gorgias OAuth2 Strategy for OmniAuth

Installation

Add this line to your application's Gemfile:

gem 'omniauth-gorgias-oauth2'

And then execute:

$ bundle

Or install it yourself as:

$ gem install omniauth-gorgias-oauth2

Usage

OmniAuth::Strategies::Gorgias is simply a Rack middleware. Read the OmniAuth docs for detailed instructions.

Here's a quick example, adding the middleware to a Rails app initializer :

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :gorgias,
           ENV['GORGIAS_CLIENT_ID'],
           ENV['GORGIAS_CLIENT_SECRET'],
           callback_path: '/auth/gorgias/callback',
           scope: 'openid email profile offline write:all'
end

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/feracommerce/omniauth-gorgias-oauth2.

License

The gem is available as open source under the terms of the MIT License.