Skip to content

An Omniauth strategy for authorization with the Shared Learning Collaborative.

License

Notifications You must be signed in to change notification settings

khoffma4/omniauth-inbloom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

An Omniauth strategy for authorization with the Shared Learning Collaborative.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages