An Omniauth strategy for authorizing with Inbloom (https://www.inbloom.org/).
Add this line to your application's Gemfile:
gem 'omniauth-inbloom'
And then execute:
$ bundle
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'
}
(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.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request