This Gem contains the PRO Santé Connect strategy for OmniAuth.
You should have already installed OmniAuth into your app; if not, read the OmniAuth README to get started.
First start by adding this gem to your Gemfile:
gem 'omniauth-pro-sante-connect', github: 'doctolib/omniauth-pro-sante-connect'Next, tell OmniAuth about this provider. For a Rails app, your config/initializers/omniauth.rb file should look like this:
Rails.application.config.middleware.use OmniAuth::Builder do
provider :pro_sante_connect, 'CLIENT_ID', 'SECRET'
endReplace 'CLIENT_ID' and 'SECRET' with the appropriate values.
If you are using Devise then it will look like this:
Devise.setup do |config|
config.omniauth :pro_sante_connect, 'CLIENT_ID', 'SECRET'
end- 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