This gem provides a simple way to authenticate to remember the milk using OmniAuth.
Add this line to your application's Gemfile:
gem 'omniauth'
gem 'omniauth-rtm'
Then integrate the strategy into your middleware:
use OmniAuth::Builder do
provider :rtm, ENV['RTM_KEY'], ENV['RTM_SECRET']
end
In Rails, you'll want to add to the middleware stack:
Rails.application.config.middleware.use OmniAuth::Builder do
provider :rtm, ENV['RTM_KEY'], ENV['RTM_SECRET']
end
The following information is provided back to you for this provider:
{
uid: '12345',
info: {
nickname: 'name',
name: 'Full Name'
},
credentials: {
token: 'thetoken' # can be used to auth to the API
}
}
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request