Omniauth::Trello

An Omniauth strategy for Trello's OAuth 1.0 authentication.

Read the Trello API documentation for more information on obtaining an application key and secret.

Installation

Add this line to your application's Gemfile:

gem 'omniauth-trello'

And then execute:

$ bundle

Or install it yourself as:

$ gem install omniauth-trello

Usage

OmniAuth::Strategies::Trello is a Rack middleware strategy for the OmniAuth gem. Look at the OmniAuth project page for more information on how to use OmniAuth.

Rails Example

Place this into config/initializers/omniauth.rb:

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :trello, ENV['TRELLO_KEY'], ENV['TRELLO_SECRET'],
  app_name: "APP_NAME"
end

Known Issues

Any help with these would be appreciated:

  • For some user authentications, the raw info returned from Trello has a null value for email
  • The app_name authorization is correctly showing up at the Trello authorization page as the name parameter per the documentation, however Trello still displays "An Unknown Application"

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request