Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 434 Bytes

README.md

File metadata and controls

17 lines (13 loc) · 434 Bytes

OmniAuth Yahoo OAuth2 Strategy

Strategy to authenticate with Yahoo via OAuth2 in OmniAuth, based on omniauth-oauth2.

Add the gem and then add the necessary config:

# /config/initializers/omniauth.rb
Rails.application.config.middleware.use OmniAuth::Builder do
  provider :yahoo_oauth2,
           ENV["YAHOO_CLIENT_ID"],
           ENV["YAHOO_CLIENT_SECRET"],
           scope: "openid2",
           name: "yahoo"
end