Drupalã®ããŒãžã§ã³6以éãOpenIDã¢ãžã¥ãŒã«ã«ã¯ã·ã¹ãã ãä»å±ããŠãããOpenIDãããã³ã«ãä»ããŠèªèšŒãæäŸããŸãã ããããã¢ãžã¥ãŒã«ã«ã¯éåžžã«æ·±å»ãªåé¡ããããŸãã ç¹ã«ãã¢ãžã¥ãŒã«èªäœã¯Ivan Sagalaevã®ããã°ã§èª¬æãããŠããã¢ã³ããã¿ãŒã³ãå®è£
ããŠããŸãã ã¢ãžã¥ãŒã«ã®2çªç®ã®åé¡ã¯ã䜿ããããã®èŠ³ç¹ãããOpenIDã«ããéééçãªèªèšŒã§ããããã«æ£ç¢ºã«èšããšãOpenIDã¢ã«ãŠã³ããä»ããŠåããŠèªèšŒããããšãããšãã·ã¹ãã ã¯ããã€ãã®ãã£ãŒã«ãã«å
¥åããããã«èŠæ±ããŸãã
äžè¬ã«ãå°æ°ã®ãã£ãŒã«ãã«å
¥åããããšã«ã€ããŠæ¬åœã«ã²ã©ãããšã¯ãããŸããïŒç¹ã«ãå Žåã«ãã£ãŠã¯äžéšã®ãã£ãŒã«ããèªåçã«å
¥åãããŸãããããã«ã€ããŠã¯ä»¥äžã§è©³ãã説æããŸãïŒããã®çç±ã¯Drupalã¢ãŒããã¯ãã£ã§ãã OpenIDã¢ã«ãŠã³ãã¯ãå®éã®Drupalã¢ã«ãŠã³ãã«é¢é£ä»ããããŠããŸãã OpenIDãããã€ããŒã§ã®èªèšŒãæåãããšãDrupalã¯OpenIDã¢ã«ãŠã³ããšDrupalã¢ã«ãŠã³ãã®å¯Ÿå¿ãèŠã€ããããšããŸãã ãã®ãããªäžèŽãèŠã€ãããªãå Žå-ã·ã¹ãã ã¯æ°ããã¢ã«ãŠã³ããç»é²ããããšãææ¡ããŸããããã®ããã«ã¯ããã€ãã®å¿
é ãã£ãŒã«ãã«å
¥åããå¿
èŠããããŸã-äžè¬ã«ãããã¯ã·ã¹ãã ãšã¡ãŒã«ã¢ãã¬ã¹ã®äžæã®ãŠãŒã¶ãŒåã§ãã äžèŽãèŠã€ãã£ãå ŽåããŠãŒã¶ãŒã¯ãã°ã€ã³ããŸãã ãããã¡ã€ã«ã§ã¯ããŠãŒã¶ãŒã¯èªåã®Drupalã¢ã«ãŠã³ãã«é¢é£ä»ããããOpenIDã¢ã«ãŠã³ããããã€ã§ãè¿œå ã§ããŸãã
Drupalã®OpenIDã®åçã«ããããã¹ãŠãå€ããå°ãªããæ確ã«ãªããŸãã ãããããŠãŒã¶ããªãã£ã«é¢ãã質åã¯æ¶ããŠããŸãã-æ¿èªãããã¯ã®äžéšã«ãããªã³ã¯ã¯ãéåžžã«äŸ¿å©ãªãœãªã¥ãŒã·ã§ã³ãšã¯èšããŸããã äžèšã§æžããIvanã®ããã°ã®æçš¿ã§ããã®åé¡ã解決ããããã®å¯èœãªãããã¿ã€ãã®1ã€ãæ瀺ãããŸãããããã¯Drupalã§åãäžããŸããã
ã©ã®ããã«ãäœãæžãããã-ãã®å Žåãããã¯æ¬åœã«éèŠã§ã¯ãªããšæããŸã-æçµçã«ããã¹ãŠããœãŒã¹ã³ãŒãã®åœ¢ã§é
åžãããŸãã ãã€ã³ãã«çŽæ¥è¡ããŸããã-äœãèµ·ãã£ã=ïŒ
ãããŠãç¹å®ã®APIã®ã»ããã䜿çšããŠãç¹å®ã®OpenIDãããã€ããŒã®ãã¬ã³ããªãªïŒå¯èœãªéãïŒãµããŒããæ¥ç¶ã§ããã·ã¹ãã ãå€æããŸãããããã«ããã©ã°ã€ã³ãããã¯ãã¶ã€ã³ããŒãã®åœ¢åŒã§è¿œå æ©èœãè¿œå ããŸããã
ãã¹ãŠã«ã€ããŠããå°ã詳ãããåçã§=ïŒ
Drupalã§ã®ã¢ãžã¥ãŒã«ã®ã€ã³ã¹ããŒã«æ¹æ³ã«ã€ããŠèª¬æããå¿
èŠã¯ãªããšæããŸãããå¿
èŠã«å¿ããŠããã®ã·ã¹ãã ã®æäœã®åºæ¬ã«ã€ããŠèª¬æããååã®èšäºãèªãããšããå§ãããŸãã ãããã£ãŠã OpenID Extenisionsã¢ãžã¥ãŒã«ãããŠã³ããŒãããŠã€ã³ã¹ããŒã«ããã ãã§ãïŒOpenIDã¢ãžã¥ãŒã«ã«äŸåããããšã«æ³šæããŠãã ããïŒã ããã§ã»ããã¢ããã§ããŸãã
[ãŠãŒã¶ãŒç®¡ç] -> [ OpenIDæ¡åŒµæ©èœ ]ã«ç§»åããOpenIDãããã€ããŒã®èšå®ã«å
¥ããŸãã
èšå®ïŒ Blocks =ã¢ãžã¥ãŒã«ããã³ããŒããæ©èœïŒã§ãå©çšå¯èœãªãããã€ããŒãæ¥ç¶/åæããããã·ãŒã±ã³ã¹ãèšå®ãããã§ããŸãã åŸè
ã¯ããªãœãŒã¹ã®ã»ãšãã©ã®OpenIDèªèšŒããããšãã°LiveJournalããã®ãã®ã§ããããšãç¥ã£ãŠããå Žåã«äŸ¿å©ã§ã-LJãæåã«é
眮ãããšããããã¯ã衚瀺ãããããŒãžãèªã¿èŸŒããšãã«ããã©ã«ãã§éžæãããŸãã ãŸããããã«ãã[ ããŒã ]ã¿ãã«ã¯ã䜿çšå¯èœãªãããã¯ã®ãªã¹ãã衚瀺ãããŸãã ããŒãã¯ãOpenIDèªèšŒãã©ãŒã ã®å€èŠ³ã決å®ããŸãã åºæ¬çãªé
ä¿¡ïŒããã³ãã®ããã°æçš¿ãæžããŠããæç¹ã§ã®ä»ã®é
ä¿¡ã¯ååšããŸãã=ïŒã«ã¯ã2ã€ã®ãããã¯ããããŸãã
ãæ°ã«å
¥ãã®ãã¶ã€ã³ããŒããéžæããOpenIDãããã€ããŒãæ§æãããããããã¯èšå®ïŒ ãµã€ããã«ãã£ã³ã° -> ããã㯠ïŒã«ç§»åãã OpenID Extensionsãšãããããã¯ãç®çã®é åã«è¿œå ãããã®äœçœ®ãèšå®ããå¿
èŠã«å¿ããŠããŒãžã«ãããã¯ã衚瀺ããããã®ãã£ã«ã¿ãŒãæ§æã§ããŸãã ããŒã«ããšã«å¯èŠæ§ãã£ã«ã¿ãŒãèšå®ããŠãæå³ããããŸããããããã®å Žåãããããã¯ã¯æš©éã®ãªããŠãŒã¶ãŒã«ã®ã¿è¡šç€ºãããŸãã
OpenIDãããã€ããŒã§ã®èªèšŒã«æåããåŸãäžèšã§æžããããã«ãåããŠãã°ã€ã³ããããšãããšãDrupalã¯ãŠãŒã¶ãŒãç»é²ããŒãžã«ãªãã€ã¬ã¯ãããããã§ãã©ãŒã ãã£ãŒã«ãã«ãããã€ããŒããåãåã£ãå€ãå
¥åããããšããŸãã OpenIDãããã€ããŒãSREïŒSimple Registration ExtensionïŒãå®è£
ãããããã¡ã€ã«ã«å¿
èŠãªãã£ãŒã«ããå
¥åãããŠããå Žåãç»é²ãã©ãŒã ã®ãããã®ãã£ãŒã«ãã¯èªåçã«å
¥åãããŸãã ããšãã°ãYandexã¢ã«ãŠã³ãã§ã¯ãå¿
èŠãªãã¹ãŠã®æ
å ±ãå
¥åãããŠããŸã-ãã°ã€ã³ããããšãããšãYandexã¯example.comãªãœãŒã¹ã®æ¿èªãèš±å¯ãããã©ãããããã³ãã®ãªãœãŒã¹ãžã®2ã€ã®ãã£ãŒã«ãïŒãšã€ãªã¢ã¹ãšã¡ãŒã«ïŒã®è»¢éãèš±å¯ãããã©ãããå°ããŸããã ç»é²æé ãèªåã¢ãŒãã§æ£åžžã«å®äºããå ŽåïŒã€ãŸããå¿
èŠãªãã¹ãŠã®ããŒã¿ãåä¿¡ãããæ€èšŒã«åæ Œããå ŽåïŒããŠãŒã¶ãŒã®Drupalã¢ã«ãŠã³ããäœæãããOpenIDèå¥åãèªåçã«é¢é£ä»ãããããŠãŒã¶ãŒãã·ã¹ãã ã«èªåçã«ãã°ã€ã³ããŸãã
å¿
èŠãªããŒã¿ãå
¥åãããŠããªãå ŽåããŸãã¯ãããã€ããŒããã®ãããªããŒã¿ãæäŸããŠããªãå ŽåïŒããšãã°ãSREãå®è£
ãããDruapalã®OpenIDã¢ãžã¥ãŒã«ã§ãµããŒããããŠããªãAXã®ã¿ïŒãGoogleã¯ãšã©ãŒãçæããäžè¶³ããŠãããã£ãŒã«ããæåã§å
¥åããããæ±ããŸãã ãŸããOpenIDãããã€ããŒããšã€ãªã¢ã¹ãæäŸããªãå ŽåãããŠãŒã¶ãŒåããã£ãŒã«ãã«ã¯OpenIDèå¥åã®å€ãå
¥åãããŸãã ãã®åé¡ã解決ããããã«ãã¢ãžã¥ãŒã«ã¯å°ããªåé¿çãæäŸããŸãããããã¯ç¹å®ã®ãããã€ããŒã§ã®ã¿åäœããŸã-LiveJournalããã³Yandexã䜿çšããåºæ¬é
åžã§ã®ã¿ã äžè¬ã«ã OpenIDã¢ãžã¥ãŒã«ã«ããããé©çšããããšã§ãGoogleããã¡ãŒã«ã¢ãã¬ã¹ãååŸããããšãã§ãããããå°æ¥çã«ã¯ã¢ãžã¥ãŒã«ã®æ©èœãå°ãæ¡åŒµããäžéšã®ãããã€ããŒã§ã¯æšæºã®ãã³ãã©ãŒã眮ãæããå¿
èŠã®ããç¬èªã®ãã³ãã©ãŒãäœæããŸãã ãŸããæè¿æ©èœåçµã¢ãŒãã«å
¥ã£ãDrupal 7ã®äžéšã§ããOpenIDã¢ãžã¥ãŒã«ã«æãå ããèšç»ããããŸããã ãããŸã§ã®éãããã¯åäœããæ¹æ³ã§åäœããŸãã
ãŸãã OpenIDæ¡åŒµã¢ãžã¥ãŒã«ã¯ã OpenIDã¢ãžã¥ãŒã«ã®èåŸã«ããããã€ãã®ãã€ã³ãããã¯ãªãŒã³ã¢ãããããŸããã€ãŸãããããã®ãã©ãŒã ãOpenIDèªèšŒã¢ãŒãã«åãæ¿ãããã°ã€ã³ãããã¯ïŒãããã¯å
ããã³å¥ã®ããŒãžïŒãããªã³ã¯ãåé€ããŸã-ãããã€ããŒã¯æšæºã¢ãžã¥ãŒã«ã®åäœãç¹°ãè¿ããŸãã¢ãžã¥ãŒã«ã®ã€ã³ã¹ããŒã«æã«ããã©ã«ãã§æå¹ã«ãªã£ãŠããä»»æã®OpenID ã
ããã ãã§ããDrupalã§ã®OpenIDèªèšŒã®äœ¿ããããã®æ¹åã«ã€ããŠã話ãããããšã¯ãã¹ãŠã§ãã ãããŸã§ã®ã¢ãžã¥ãŒã«ã¯ã ãããžã§ã¯ãã»ã¯ã·ã§ã³ã®ç§ã®Webãµã€ãã§ã®ã¿ããŠã³ããŒãã§ããŸã ã ã¢ãžã¥ãŒã«ãå°ãã¯ãªãŒã³ã¢ãããããåŸã drupal.orgã§å¯ŸäŸ¡ãæ¯æãããŸãïŒãã·ã¢èªã§ãã®èšèã«äŒŒãŠãããšã¯æããŸããïŒã
ãããŠæåŸã«ãã¡ãã£ãšããé°è¬-ãã®ã¢ãžã¥ãŒã«ã¯ããšããšãããžã§ã¯ãã®ããã«éçºããããã®ã§ãè¿ãå°æ¥ã«å
ãèŠãã¯ãã§ãã ãããžã§ã¯ãã®çºè¡šã¯å
¬éãããŸã=ïŒ
ããã§ãã¹ãŠã確å®ã«ãªããŸãã=ïŒã³ã¡ã³ã/ãã°ã¬ããŒã/ææ¡/ã³ã¡ã³ãã®ãé¡ãã楜ãã¿ã«ããŠããŸãã
è
åšçŸåšãããã€ãã®DrupalããŒãã§ã®ã¢ã³ãŒãã£ãªã³ã®å€èŠ³ã®è¡šç€ºã«ã¯ããã€ãã®åé¡ããããŸãã ç¹ã«ããã¶ã€ã³ã¯LightWordããŒãã§ã¯æ£ããæ©èœããŸããã
UPDïŒãã®ã¢ãžã¥ãŒã«ã¯çŸåšdrupal.orgã§ã³ãŒãã¬ãã¥ãŒãã§ãŒãºãå®æœäžã§ãã
UPD2ïŒ Googleã§ãã°ã€ã³ããããšãããšãšã©ãŒãçºçããå ŽåãGoogleã¯httpsã䜿çšãããããOpenSSLãµããŒãã䜿çšããŠPHPãæ§ç¯ããå¿
èŠããããŸãïŒubuntã§ã¯ãopensslããã±ãŒãžãã€ã³ã¹ããŒã«ããã ãã§ååã§ãïŒã
UPD3ïŒããŒãžã§ã³0.6.5ã«æŽæ°ããã®äžïŒ
-æ°ãããããã€ããŒãChi.mpããè¿œå ããŸãã
-ãããã€ããŒã®å¯çšæ§ã確èªããæ©èœãè¿œå
-googleãšchi.mpã®ãã§ãã¯ãå®è£
ããŸãã-ãããã€ããŒã®ç®¡çã§éç¥ãããopensslãµããŒãããªãå Žåãäž¡æ¹ãšãå©çšã§ããªããªããŸããã