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
As promised, here is a follow up tutorial on the node.js/socket.io/backbone.js/express/connect/jade/redis stack that powers nodechat.js. The first nodechat.js tutorial introduced some fancy ideas, like using backbone.js on the server and streaming models over socket.io which is all well and great, but it left some of the more practical questions unanswered. Issues like coordinating authentication
au one netã®ããã°ãµã¼ãã¹ ãLOVELOGãã¯2014å¹´6æ30æ¥ããã¡ã¾ãã¦æä¾ãçµäºè´ãã¾ããã æ°¸ããã®ãå©ç¨ãèª ã«ãããã¨ããããã¾ããã å¼ãç¶ãau one netããæ顧ããã ãã¾ãããããããããé¡ãç³ãä¸ãã¾ãã â»ãææ°ã§ã¯ãããã¾ãããæ°ããã°ã«ã¦é²è¦§ã®çãã¾åãã«ããã°URLå¤æ´çããå¨ç¥ããã ãã¾ãããããé¡ãç³ãä¸ãã¾ãã
CakePHPã§Authã³ã³ãã¼ãã³ãã使ç¨ãã¦ããã¨ãã«ãã¦ã¼ã¶ããã°ã¤ã³ããã¿ã¤ãã³ã°ã§ãã°ãã¨ãããã®TIPSã§ãã Authã³ã³ãã¼ãã³ãã®å©ç¨æ³ãªã©ã¯å²æãã¾ãã Authã®ããããã£ãè¨å®ããã¨ãã«ãautoRedirectãç¡å¹ã«ãã¾ãã appControllerãªã©ã§Authè¨å®ãè¡ãå ´å $this->Auth->userModel = "User"; $this->Auth->loginAction = "login"; $this->Auth->autoRedirect = false; $this->Auth->loginRedirect = "/"; // 以ä¸ç¥ usersController function login() { if ($this->Auth->user()) { $this->loadModel("LoginLog"); // ãã°ã¤ã³å±¥
ã¦ã¼ã¶èªè¨¼ã·ã¹ãã ã¯å¤ãã®ã¦ã§ãã¢ããªã±ã¼ã·ã§ã³ã§ä¸è¬çãªä»çµã¿ã§ãã CakePHP ã«ã¯ãããããç°ãªããªãã·ã§ã³ãæã¤ã¦ã¼ã¶èªè¨¼ã®ã·ã¹ãã ãããã¤ãããã¾ãã ãããã®ä¸æ ¸ãæ ãèªè¨¼ã³ã³ãã¼ãã³ãã§ã¯ãã¦ã¼ã¶ããããµã¤ãã«ã¢ã«ã¦ã³ããæã£ã¦ãããããã§ãã¯ãã¾ãã ããã¢ã«ã¦ã³ããåå¨ããã°ãã³ã³ãã¼ãã³ãã¯ã¦ã¼ã¶ã«å¯¾ãã¦ãµã¤ãã¸ã®ã¢ã¯ã»ã¹ã許å¯ãã¾ãã ãã®ã³ã³ãã¼ãã³ãã¯ã¢ã¯ã»ã¹å¶å¾¡(Access Control List, ACL)ã³ã³ãã¼ãã³ãã¨ä½µãã¦ä½¿ããã¨ã§ãããè¤éãªãµã¤ãå ã®ã¢ã¯ã»ã¹æ¨©éãä½æã§ãã¾ãã ACL ã³ã³ãã¼ãã³ãã¯ãä¾ãã°ãããã¦ã¼ã¶ã«ã¯ãµã¤ãã®ä¸è¬çãªé åã«ã¢ã¯ã»ã¹ãããã¨ã許å¯ãã å¥ã®ã¦ã¼ã¶ã«ã¯ä¿è·ããããµã¤ãã®ç®¡çé åã¸ã®ã¢ã¯ã»ã¹ã許å¯ããã¨ãã£ããã¨ãå®ç¾ã§ãã¾ãã CakePHP ã® AuthComponent ã使ãã¨ãããã
èªåãã°ã¤ã³æ©è½ã¨ã¯ èªåãã°ã¤ã³ã®ä»çµã¿ å®è£ ãã©ã¦ã¶ãéããå¾ã§ãèªåçã«ãã°ã¤ã³ã§ããããã«ãã°ã¤ã³ã»ãã©ã¼ã ã«ã次åããèªåçã«ãã°ã¤ã³ãã次åãããã°ã¤ã³ãçç¥ããRemember meããªã©ã®ãã§ãã¯ããã¯ã¹ãåãã£ã¦ããã±ã¼ã¹ãè¯ãè¦ããã¾ããAuthComponentã¨CookieComponentã使ã£ã¦å®è£ ãã¦ã¿ã¾ããAuthComponentã®ãã¼ã¸ã§èª¬æããä¾ã®ç¶ãã¨ãã¦èª¬æãããã¾ãã ãã®ï¼ã§ã¯ãAuthenticationã«ããæ¹æ³ãç´¹ä»ãã¾ãã èªåãã°ã¤ã³æ©è½ã¨ã¯ èªåãã°ã¤ã³æ©è½ã¨ã¯ããã°ã¤ã³ãå¿ è¦ãªãã¼ã¸ã«ãã¦ã¼ã¶ã¼åããã¹ã¯ã¼ãã®å ¥åãªãã§ã¢ã¯ã»ã¹ã§ãã便å©ãªæ©è½ã§ãããã°ã¤ã³æã«ã次åããèªåçã«ãã°ã¤ã³ãã«ãã§ãã¯ãã¦ãã°ã¤ã³ããã¨èªåãã°ã¤ã³ãæå¹ã«ãªãã¾ããã¯ããã¼ã使ãããã©ã¦ã¶ã®ã¿å¯¾å¿ã èªåãã°ã¤ã³ã®ä»çµã¿ ã次åããèªåçã«ãã°ã¤ã³
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}