OmniAuth strategy for authenticating to Coding. To use it, you'll need to sign up for an OmniAuth2 Application ID and SECRET on the Coding Application Page
Add this line to your application's Gemfile:
gem 'omniauth-coding'
And then execute:
$ bundle
Or install it yourself as:
$ gem install omniauth-coding
use OmniAuth::Builder do
provider :coding, ENV["CODING_KEY"], ENV["CODING_SECRET"]
end
use OmniAuth::Builder do
provider :coding, ENV["CODING_KEY"], ENV["CODING_SECRET"], scope: "user"
end
create config/initialize/omniauth.rb
Rails.application.middleware.use OmniAuth::Builder do
provider :coding, ENV['CODING_KEY'], ENV['CODING_SECRET']
end
To install this gem onto your local machine, run bundle exec rake install
. To release a new version, update the version number in version.rb
, and then run bundle exec rake release
, which will create a git tag for the version, push git commits and tags, and push the .gem
file to rubygems.org.
Bug reports and pull requests are welcome on GitHub at https://github.com/krufyliu/omniauth-coding. 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.