OmniAuth strategy for WegoWise
Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.gitignore
Gemfile
LICENSE
README.md
Rakefile
omniauth-wegowise.gemspec

README.md

OmniAuth::WegoWise

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.

Installation

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.

Usage

Register your app with WegoWise to obtain your application's consumer key and secret credentials. Your app's OmniAuth configuration will use those credentials.

Rack app

use OmniAuth::Builder do
  provider :wegowise, ENV['CONSUMER_TOKEN'], ENV['CONSUMER_SECRET']
end

Rails app

In 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