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.