doorkeeper-gem/doorkeeper

doorkeeper - Doorkeeper is an OAuth 2 provider for Rails.