SoundCloud Strategy for OmniAuth 1.0
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.
SoundCloud Strategy for OmniAuth 1.0
November 18th, 2011 by Lee Martin
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.
Installing
Add to your Gemfile:
gem 'omniauth-soundcloud', '~> 1.0.0'
Then bundle install.
Basic Usage
Add the following piece of Rack middleware.
use OmniAuth::Builder do
provider "soundcloud", ENV['SOUNDCLOUD_CLIENT_ID'], ENV['SOUNDCLOUD_SECRET']
end
- Front-end JavaScript bug tracking →