This gem is an omniauth strategy for integrating an omniauth powered app with rails-sso-app, a hosted identity service and Oauth 2 provider.
Add this line to your application's Gemfile:
gem 'omniauth-rails-sso'
And then execute:
$ bundle
Or install it yourself as:
$ gem install omniauth-rails-sso
Configuration is much the same as any other omniauth strategy.
Rails.application.config.middleware.use OmniAuth::Builder do
provider :rails-sso, <your client key>, <your client secret>
end
If you haven't already done so, be sure to read about omniauth. It contains important information about how to setup you app for using omniauth and its strategies.
- 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 new Pull Request