It now supports MyMLH API V3. Read the MyMLH V3 docs here.
Once you have done so, you can follow the instructions below:
You need to have at least Ruby 2.2.4 to use this gem.
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install omniauth-mlh
use OmniAuth::Builder do provider :mlh, ENV['MY_MLH_KEY'], ENV['MY_MLH_SECRET'], scope: 'default email birthday' end
Usage (Rails with Devise)
# config/devise.rb Devise.setup do |config| config.provider :mlh, ENV['MY_MLH_KEY'], ENV['MY_MLH_SECRET'], scope: 'default email birthday' end
- Fork it ( https://github.com/mlh/my-mlh-omniauth/fork )
- 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 a new Pull Request
We used part of datariot/omniauth-paypal's code to help us test this gem.