A Disqus OAuth2 strategy for OmniAuth.
Add this line to your application's Gemfile:
gem 'omniauth-disqus'
And then execute:
$ bundle
Or install it yourself as:
$ gem install omniauth-disqus
Register your application with Disqus to retrieve a public key and secret key: http://disqus.com/api/applications/
This is an example that you might put into a Rails initializer at config/initializers/omniauth.rb
:
Rails.application.config.middleware.use OmniAuth::Builder do
provider :disqus, ENV['DISQUS_PUBLIC_KEY'], ENV['DISQUS_SECRET_KEY']
end
You can now access the OmniAuth Disqus OAuth2 URL: /auth/disqus
.
- Fork it
- Create your feature branch (
git checkout -b feature/my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin feature/my-new-feature
) - Create new Pull Request