You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
omnauth-yahoojpã¨ã¯ railsã¨ãå種ID(facebook, twitter, mixi, Googleãªã©ãªã©)ã®èªè¨¼æ©è½ã追å ãã¦ãããomniauthã®YConnect(Yahoo! JAPAN)çãçªè²«ã§ä½ã£ã¦ã¿ã¾ããï¼ãã¹ãã¨ãé©å½ï¼ãGithub ã§å ¬éãã¦ãã¾ãã omniauth-yahoojp - Github ãã¼ã¹ã¯omnioauth-oauth2ã§ãStrategyã¨ããå½¢ã§YConnectã®æ©è½ã追å ããYConnectãæä½éã«å©ç¨ã§ããããã«ãã¦ãã¾ãã git clone ãã¦ããããgem build & gem install ããã°å©ç¨ã§ãã¾ãããèªåã§ãã ãã ãé¢åããããªã£ã¦ããã®ããã£ã¦ãå¢ã㧠rubygems ã«ãããã¦ã¾ãã omniauth-yahoojp(0.1.0) - rubygems.org gem instal
ã»ã¨ãã©éè¦ããªãã¨æããããã©ã¡ã¢ã Rails + OmniAuthã§ä¾ãã°Twitterèªè¨¼ãããã¨ããããã©ã«ãã§èªè¨¼æã®URL㯠/auth/twitter ã§ãã³ã¼ã«ããã¯URL㯠/auth/twitter/callback ã«ãªãã ãã®URLãå¤æ´ããã«ã¯ãconfig/initializers/omniauth.rbã«ãããªãµãã«æ¸ãã Rails.application.config.middleware.use OmniAuth::Builder do provider :twitter, 'TWITTER_CONSUMER_KEY', 'TWITTER_CONSUMER_SECRET', :request_path => '/sign_in', :callback_path => '/sign_in/callback' end ã»ãã«ã:path_prefix ã¨
OmniAuthã1.0ã«ãªã£ã¦APIããã£ããå¤ãã£ãã ã¾ããrequest.env['omniauth.auth']ãHashã§ã¯ãªãã¦Hashie::Mashã«ãªã£ã¦ãããã¾ãuser_infoã¨ãããã¼ãinfoã«ãªã£ã¦ããã ã¾ãããµã¼ãã¹ãããã¤ããã¨ã®å®è£ ãããããã®gemã«åããã¦ããã®ã§Gemfileãªã©ã«gem 'omniauth-twitter'ãªã©è¿½è¨ããå¿ è¦ãããã ãã¨ã¯ã ããããã®ã¾ã¾ã§åãã¦ãããããã
ãã®ã¦ã§ããµã¤ãã¯è²©å£²ç¨ã§ãï¼ twiwt.org ã¯ãããªãããæ¢ãã®æ å ±ã®å ¨ã¦ã®ææ°ãã¤æé©ãªã½ã¼ã¹ã§ããä¸è¬ãããã¯ããããããæ¤ç´¢ã§ããå 容ã¯ãtwiwt.orgãå ¨ã¦ã¨ãªãã¾ããããªãããæ¢ãã®å 容ãè¦ã¤ãããã¨ãé¡ã£ã¦ãã¾ãï¼
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}