YConnect OAuth2 Strategy for OmniAuth 1.0.
Supports the OAuth 2.0 server-side and client-side flows. Read the YConnect docs for more details:
Yahoo!デベロッパーネットワークトップ>YConnect
TODO: refactoring
Add this line to your application's Gemfile:
gem 'omniauth-yconnect'
OmniAuth::Strategies::Facebook is simply a Rack middleware. Read the OmniAuth 1.0 docs for detailed instructions: https://github.com/intridea/omniauth
※例を示します。scope等はドキュメントを確認してください。
Rails.application.config.middleware.use OmniAuth::Builder do
provider :facebook, ENV['YCONNECT_APPLICATION_ID'], ENV['FACEBOOK_SECRET']
:scope => %W(
openid
profile
email
address
).join(' ')
end
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request