No release in over 3 years
Low commit activity in last 3 years
Unofficial OmniAuth strategy for ClassLink SSO OAuth2 integration
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Gem Version

OmniAuth ClassLink

Unofficial OmniAuth strategy for ClassLink integration.

Installation

Add the gem to your application's Gemfile:

gem 'omniauth-classlink'

And then execute:

$ bundle

Usage

First, you need to have your OAuth2 application registered in ClassLink. After creating one, you'll be provided with access key and secret that should be used for configuring the gem.

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :class_link, 'your-classlink-access-key', 'your-classlink-secret', strategy_class: 'OmniAuth::Strategies::ClassLink'
end

Or, alternatively, if you use Devise, you can put this in the Devise.setup section:

 config.omniauth :class_link,
                 'your-classlink-access-key',
                 'your-classlink-secret',
                 strategy_class: 'OmniAuth::Strategies::ClassLink'

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 new Pull Request

License

Apache 2.0