This project was archived in October 2022, the functionality has been ported into gds-sso.
Omniauth strategy for GDS oauth2 provider
Add this line to your application's Gemfile:
gem 'omniauth-gds'
And then execute:
$ bundle
Or install it yourself as:
$ gem install omniauth-gds
To use with Devise, add the following to your Devise initializer (typically devise.rb):
config.omniauth :gds,
ENV.fetch("APPLICATION_ID"), # Obtained when generating a new application
ENV.fetch("APPLICATION_SECRET"),
client_options: {
site: ENV.fetch("SIGNIN_URL") # The location of your signonotron2 install
}- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Added some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request