This is a Omniauth strategy for Kit
More info at https://kitcrm.com/developers
Place the following code in config/initializers/omniauth.rb
file
Rails.application.config.middleware.use OmniAuth::Builder do
provider :kit,
'your API key',
'your API secret',
scope: 'public message stats',
client_options: {
headers: {
'Accept' => 'application/json',
'Content-Type' => 'application/json',
}
}
end
- Add tests
Bug reports and pull requests are welcome on GitHub at https://github.com/pemberton-rank/omniauth-kit-oauth2. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the Omniauth::Kit::Oauth2 project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.
Copyright (c) 2017 Pemberton Rank Ltd