OmniAuth is a great little Rack library that standardizes multi-provider authentication for web applications. As OmniAuth says, “it was created to be powerful, flexible, and do as little as possible.” I use it constantly on hacks that mash up multiple API providers.
You can now add SoundCloud to the growing list of strategies OmniAuth 1.0 supports.
Add to your Gemfile:
gem 'omniauth-soundcloud', '~> 1.0.0'
Then bundle install.
Add the following piece of Rack middleware.
use OmniAuth::Builder do
provider "soundcloud", ENV['SOUNDCLOUD_CLIENT_ID'], ENV['SOUNDCLOUD_SECRET']
end