#Not Tested - Work in Progress
Strategy to authenticate with Yahoo via OAuth2 in OmniAuth.
Consumer Key and Consumer Secret key at: https://developer.apps.yahoo.com/projects
Note: You must enable the "Contacts API" and "Social Directory (Profile) API". Otherwise, you will receive an OAuth2::Error
stating that access is not configured when you attempt to authenticate.
For more details, read the Google docs: https://developer.yahoo.com/oauth2/guide/
Add to your Gemfile
:
gem "omniauth-yahoo2"
Then bundle install
.
Here's an example for adding the middleware to a Rails app in config/initializers/omniauth.rb
:
Rails.application.config.middleware.use OmniAuth::Builder do
provider :yahoo, ENV["CONSUMER_KEY"], ENV["SECRET_KEY"]
end