OmniAuth strategy for the WegoWise API. Using this gem in a WegoWise API client application allows you to easily authenticate users against the WegoWise OAuth API.
Add gem 'omniauth-wegowise' to your application's Gemfile and run the
bundle command to install it via Bundler.
You may also install the gem directly by running
gem install omniauth-wegowise.
Register your app with WegoWise to obtain your application's consumer key and secret credentials. Your app's OmniAuth configuration will use those credentials.
use OmniAuth::Builder do
provider :wegowise, ENV['CONSUMER_TOKEN'], ENV['CONSUMER_SECRET']
endIn a Rails app, you could place this code in an initializer such as
config/initializers/omniauth.rb.
Rails.application.config.middleware.use OmniAuth::Builder do
provider :wegowise, ENV['CONSUMER_KEY'], ENV['CONSUMER_SECRET']
end