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
AngularJS ã¸ã®æ¹å®ãå®äºãããmitsuruogãã§ãã AngularJS ã«éãã Single page application(以ä¸ãSPA)ãæ§ç¯ããå ´åãèªè¨¼(Authenticate)ã¨ãã®å¾ã® WebAPI ã§ã®è¨¼ææ å ±(Credential)ã®åã渡ãæ¹æ³ã«ã¤ãã¦æè¿æ©ãã§ãã¾ãã 調ã¹ã¦ããã Json Web Token(以ä¸ãJWT)ãå©ç¨ããæ¹æ³ãCookies vs Tokens. Getting auth right with Angular.JSã§ç´¹ä»ããã¦ãã¦ã試ãã¦ã¿ãã¨çµæ§ä½¿ãããã§ããã®ã§ç´¹ä»ãã¦ã¿ã¾ãã ç®æ¬¡ 1.WebAPI ã§ã®è¨¼ææ å ±ã®åã渡ãã®éè¦æ§ 2.Token ãå©ç¨ãã証ææ å ±ã®åã渡ã 3.å®ç¾ããããã®ã³ã¢æè¡ãJWT(Json Web Token)ã¨ã¯ 4.Token ãå©ç¨ããå ´åã®èª²é¡ãªã© ç§å¯éµã®ç®¡ç ãªãã¬ã
ã©ãã@kimihomã§ãã API ã«é¢ããåºç¤çãªè©±ã§ããªã API ãéè¦ãªã®ããAPIã®å®è£ ã§æ³¨æããç¹ã«ã¤ãã¦è¨è¿°ããã ä»åã¯APIéçºã«ããã¦æãé ãæ©ã¾ããèªè¨¼ã®åé¡ã«ã¤ãã¦èãã¦ã¿ããã API ã«ãããèªè¨¼ ãããããã°ã¤ã³ãå¿ è¦ãªãã¼ã¸ãèãã¦ã¿ã¦ããã ãããã é常ã®Webã¢ããªã±ã¼ã·ã§ã³ã§ããã°ãCookieã¨ããä»çµã¿ã使ã£ã¦æ¯åWebãµã¼ãã¼ã«ã¢ã¯ã»ã¹ããã¨ãã«session idã¨ãããã®ãéä¿¡ããããã¨ã¦ã¼ã¶ã¼æ å ±ãç´ä»ãããã¼ã¿ãåã£ã¦ãããã¨ã§ãã©ããªã¦ã¼ã¶ã¼ãããªã¯ã¨ã¹ããæ¥ãã®ããWebã¢ããªã±ã¼ã·ã§ã³å´ã§å¤æãããã¨ãã§ãããããã«ãããç§ãã¡ã¯ãã¤ãé²è¦§ãã¦ããWebã¢ããªã±ã¼ã·ã§ã³ãèªåå°ç¨ã®ç»é¢ã¨ãã¦è¦ããããã«ãªã£ã¦ããã ãããAPIã«ãªãã¨è©±ã¯éã£ã¦ãããCookieã¨ããä»çµã¿ã使ããªãã®ã§ãããã¨ãããã¨ã§ããªãã¨ããã¦APIã«ã¢
ã¡ã³ããã³ã¹
ãç¥ãã
é害
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}