An Omniauth strategy for Emma
Add this line to your application's Gemfile:
gem 'omniauth-emma'
And then execute:
$ bundle
Or install it yourself as:
$ gem install omniauth-emma
Add the following to your config/initializers/omniauth.rb
:
Rails.application.config.middleware.use OmniAuth::Builder do
provider :emma, "client_id", "client_secret"
end
You need to insert your key and secret, which you get when you register your app with Emma.
Now just follow the README at: https://github.com/intridea/omniauth
- 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