An Omniauth strategy for authorization with the Shared Learning Collaborative.
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.gitignore
Gemfile
LICENSE.txt
README.md
Rakefile
omniauth-inbloom.gemspec

README.md

Omniauth::Inbloom

An Omniauth strategy for authorizing with Inbloom (https://www.inbloom.org/).

Installation

Add this line to your application's Gemfile:

gem 'omniauth-inbloom'

And then execute:

$ bundle

Usage

In your omniauth.rb initializer add the following:

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :inbloom, ENV['INBLOOM_KEY'], ENV['INBLOOM_SECRET']
end

To set up the slc sandbox provider, you can configure the slc provider as follows:

provider :inbloom, ENV['INBLOOM_KEY'], ENV['INBLOOM_SECRET'], :setup => lambda{|env|
   env['omniauth.strategy'].options[:client_options].site = 'https://api.sandbox.inbloom.org'
}

Examples

(Outdated) Please see https://github.com/khoffma4/slc-example for an example of how to use quickly get up and running with the Shared Learning Collaborative API.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request