ä»ä½ã£ã¦ãããµã¼ãã¹ãå¾ã ãOAuthãOpenIDãããã«ã対å¿ãããã¨ã«ãªããããããªãã®ã§ããã®ãããæè»ã«å¯¾å¿ã§ããããªwardenã試ãã¦ã¿ã¾ããã å¿ è¦ãªgemã¯wardenã¨rails_wardenã®2ã¤ã Userã¢ãã«ã¯ä»¥ä¸ã®ãããªæãã§ã 次ã«githubã®ãã¼ã¸ãåèã«config/initializers/warden.rbã追å ãã¾ããä»åã¯ãã¹ã¯ã¼ãã§èªè¨¼ããããã®ã§passwordã®strategyãèªåã§è¿½å ãã¾ãã(ã¨è¨ã£ã¦ãã»ã¨ãã©ãµã³ãã«ã¨åã) ãã®å¾ã¯User.authenticateã®ä¸èº«ãfindbyloginandpasswordã¨ãã§å®è£ ãã¦ãããã®ã§ãããããã ã¨ãã¹ã¯ã¼ããå¹³æã«ãªã£ã¦ãã¾ãã®ã§restful_authenticationã®ã³ã¼ããå°ãæåãããã¨ã«ãã¾ãã includeãã¦ãããã®ãrestful_authentic
{{#tags}}- {{label}}
{{/tags}}