Repository: omniauth-gds
Omniauth strategy for GDS
- Ownership
- #govuk-publishing-tech
- Hosting
- N/A
- Category
- Gems
README
Omniauth strategy for GDS oauth2 provider
Installation
Add this line to your application’s Gemfile:
gem 'omniauth-gds'
And then execute:
$ bundle
Or install it yourself as:
$ gem install omniauth-gds
Usage
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
}
Contributing
- 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