Doorkeeper is an OAuth 2 provider for Rails.  This is our internal fork where we have slight changes and additions.