Amazon Cognito User Poolsãjavascriptã§æ±ãããã®å ¬å¼ããã±ã¼ã¸amazon-cognito-identity-jsã2017/5/12ã«æ´æ°ãã1.17.0ã«ãªã£ãã ããã¾ã§ã¯èªè¨¼å¾ã®ã»ãã·ã§ã³æ å ±ã¯èªåçã«ãã¼ã«ã«ã¹ãã¬ã¼ã¸ã«ä¿åãããä»æ§ã§ãã£ãããããæ示çã«clearCachedTokensã¾ãã¯signOut, globalSignOutãå®è¡ããªãéãã»ãã·ã§ã³æ å ±ã端æ«ã«æ®ããã¨ã¨ãªã£ã¦ããã ãã¼ã«ã«ã¹ãã¬ã¼ã¸ã¯ãã¡ã¤ã³æ¯ã®æ å ±ã端æ«ã«æ°¸ç¶ä¿åããããã®å ´æãªã®ã§ãå ±ç¨ãã½ã³ã³ãªã©ã§ãã°ã¢ã¦ããå¿ããã¨ããªããã¾ãã®ãªã¹ã¯ããã£ããã¢ãã¤ã«ã¢ããªã®å ´åã¯åé¡ã«ãªããªããWebã¢ããªã±ã¼ã·ã§ã³ã®å ´åã¯æ³¨æããªãã¨ãããªãã å ·ä½çã«ã¯ãid tokenãsession tokenã¯1æéã§æéåãã«ãã使ããªããªãããrefresh to
æä½éãªè¦ä»¶ã ã使ã£ã¦ã¿ãã«ãã¦ãç½ ã ããã ã£ãã®ã§ã¡ã¢ã 調ã¹ã¦ããããªæ å ±åºã¦ããªãã£ãã®ã§ãæ¥åã¬ãã«ã§ã¯ã¾ãã§èª°ã使ã£ã¦ãªãããããã¼ã®ã£ã¦æ°æã¡ãããã é¡ããã°ãã使ããããªã( ËÏË) Amazon Cognito is ä½ ããããã§ããã»ã»ã Amazon Cognitoã§ã§ãããã¨ã¯ã大ããåãã¦2ã¤ã§ãã ãã°ã¤ã³ã»ã»ãã·ã§ã³æ©è½ ãã¼ã¿ã®åææ©è½ AWSã®ã³ã³ã½ã¼ã«ã®Cognitoã®ãã¼ã¸UIçã«ãã User Pools Federated Identities ã£ã¦ãªåãåãã«ãªã£ã¦ã¦ãããã対å¿ãã¦ãã ã¾ããã®ãµã¼ãã¼ã¬ã¹ã ãªãã ã®æ代ã«ããããããã¨ã§ãããµã¼ãã¹ããããã¨ã¯ä¸æè°ã§ã¯ãªãã Alternativesã¨ããæå³ã§ã¯ãFirebase Authenticationã¨ããããï¼ JavaScriptã®SDKãã¡ ããã¦jsã§ä½¿ãä¸ã§å¿ è¦ã§ãã
ã¦ã¼ã¶ã¼ãéå®ããwebãµã¤ãã»webã¢ããªã¯ãã°ã¤ã³ã®ä»çµã¿ãå¿ è¦ã«ãªã. AWS cognito, ç¹ã«User Poolsã®æ©è½ã§ãããå®è£ ã§ãã. Cognitoã¨ã¯ä½ãï¼ã¨ããæ¹ã¯ãã¡ãä¸èªãæ¨å¥¨. tarepan.hatenablog.com Cognitoãç¨ããã»ãã·ã§ã³ç®¡çã®å¤§æ ã¤ã³ã¿ã¼ããããä»ããååèªè¨¼ãèªè¨¼æ å ±ã®ãã¼ã«ã« (ãã©ã¦ã¶) ã¸ã®ä¿å åwebãã¼ã¸/ã¢ããªé·ç§»ã§ãã¼ã«ã«èªè¨¼æ å ±ã®ãã§ãã¯ãä¸æ£ãªãããããã¼ã¸/ãã°ã¤ã³ç»é¢ã¸å¼·å¶ãªã³ã¯ ååèªè¨¼æã®ãã¼ã¿ããã¼ã«ã«ã¸èªåä¿åãããå¿ è¦ã«å¿ãã¦ãã¼ã¸é·ç§»æãªã©ã«èªã¿åºãé¢æ°ã§ããããã§ã㯠(validation)ãæªãã°ã¤ã³ã»æéåãçã®å ´åã¯ãã®ãã¼ã¸ãã追ãåºã. AWS Cognito UserPoolsãå©ç¨ããã°ãé¢æ°ãæ°åå©ãã ãã§ãã®ä»çµã¿ãå®è£ ã§ãã, ãããã Amazon. 詳細
Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article? ä¸è¨GitHubã«ãµã³ãã«ãã¢ãããã¼ããã¾ããã https://github.com/teradonburi/CognitoUserAuthApiApproval ãµã¼ãã¬ã¹ã¢ã¼ããã¯ãã£ã¨ã¯ ãµã¼ããéç¨ããå ´åã大ã¾ãã«ããã¦æ¬¡ã®ï¼ã¤ã®é¸æè¢ãåå¨ããã¨æãã¾ãã èªç¤¾ã§ãµã¼ãã管çããã±ã¼ã¹ï¼ãªã³ãã¬ãã¹åï¼ ã¯ã©ã¦ããµã¼ãã¹ã§ãµã¼ãã管çãã¦ãããã±ã¼ã¹ï¼IaaSã¯ã©ã¦ãåï¼ ã¯ã©ã¦ãä¸ã§ãã¸ãã¹ãã¸ãã¯ã®ã¿è¨è¿°ãã¦ãå¿ è¦ãªæã ããµã¼ãã稼åãããã¹ã±ã¼ã«ãã¯ã©ã¦ããµã¼ãã¹ã«ä»»ããã±ã¼ã¹ï¼ãµã¼ãã¬ã¹åï¼ ã¯ã©ã¦ãã«ä¾åããã»
ä»åã¯ãã¦ã¼ã¶ã®ç»é²ã¯ç®¡çè ãAWSã®ã³ã³ã½ã¼ã«ãªã©ã§å®æ½ããä¸è¬ã¦ã¼ã¶ã¯ãã°ã¤ã³ã ãããã±ã¼ã¹ã§ãã ãã©ã¦ã¶ããã®cognitoã«æ¥ç¶ãã¦èªè¨¼æ å ±(access tokenç)ãåå¾ãããã¨ãç®çã§ãã å ·ä½çã«ã¯ã以ä¸ã®ã管çè ã¾ãã¯éçºè ã«ãã£ã¦ä½æãããã¦ã¼ã¶ã¼ã®èªè¨¼ããã¼ãã®é¨åãå®è£ ãã¾ãã docs.aws.amazon.com AWSã®ã³ã³ã½ã¼ã«ã使ã£ã¦User Pool ã®è¨å®ãããã docs.aws.amazon.com User Poolã®è¨å®ã§ã¯ãemailã®ç»é²ãå¿ é ã«ãã(orããªã)ããã¹ã¯ã¼ãã®é·ããæå種å¥ãªã©ãè¨å®ãã¾ãã (ããã¯ãããã¥ã¡ã³ãéãã§ç¹ã«è¿·ãç¡ããã¨æãã¾ãã) ä»åã¯ãemailã®ã¿å¿ é ã«ãã¾ããã User Poolã®ç»é¢ã§ãã¦ã¼ã¶ãä½æããã ããã¯ãã³ã³ã½ã¼ã«ã®ç»é¢ã®æµãã«å¾ãã¾ãã AWSã³ã³ã½ã¼ã«ã§ä½æããå ´åã¯ã以ä¸ã®
S3ã¨Lambdaã¨Cognitoã使ã£ã¦ãç°¡åã§ã»ãã¥ã¢ãªãåãåãããã©ã¼ã ã·ã¹ãã ãä½ã£ã¦ã¿ã¾ãã è¨äºå·çå½æãCognitoããã¼ã¸ãã¢/ã¢ã¤ã«ã©ã³ãã®ã¿å©ç¨å¯è½ã ã£ããããä»åã¯S3/Lambda/Congitoå ¨é¨ãã¼ã¸ãã¢(us-east-1)ã«æãã¦ãã¾ãï¼S3ã¨Lambdaã¯ãªã¼ã¸ã§ã³æããå¿ è¦ãããã¾ãï¼ã2015å¹´9æ以éãæ±äº¬ãªã¼ã¸ã§ã³ã§ãCognitoã¯å©ç¨å¯è½ã¨ãªã£ã¦ãã¾ãã å ¨ä½å S3ä¸ã«ãã¹ãã£ã³ã°ãã¦ãããåãåãããã©ã¼ã ããæ稿ããã¨ãS3ä¸ã«JSONå½¢å¼ã§å 容ãuploadããã¾ãããã¡ã¤ã«ãuploadãããã¨ãLambdaãã¤ãã³ãããã¯ãã¦å 容ãGmailã«éä¿¡ããæ§é ã§ãã ãåãåããæ°ã®å°ãªããµã¤ãã§ã¯ãããã§ååã§ãããã SQLã¤ã³ã¸ã§ã¯ã·ã§ã³ã¨ã¯ç¡ç¸ã§ãããè² è·ãæ°ã«ããªãã¦è¯ãã®ã§ãé¸æè¢ã¨ãã¦ã¯ããããªã¨æãã¾ãã 0 æºå
æ¦è¦ AWS Summit 2016 Chicago ã«ã¦Amazon Cognitoã®æ°æ©è½ã¨ãã¦çºè¡¨ããããUser Poolsãã使ã£ã¦webãµã¤ãã«ã¦ã¼ã¶èªè¨¼åºç¤ãä½ãã¾ããUser Poolsã¯ãµã¤ã³ã¤ã³ããµã¤ã³ã¢ãããã»ãã·ã§ã³ç®¡çãªã©ãããããã¦ã¼ã¶ç®¡çæ©è½ãããã¼ã¸ãã§æä¾ãã¦ããããµã¼ãã¹ã§ãã [New] Amazon Cognito åã User Pools User Poolsã®ä½æ [æ°æ©è½] Amazon Cognito ã«å¾ æã®ã¦ã¼ã¶ã¼èªè¨¼åºç¤ãUser Poolsãã追å ããã¾ããï¼ ä½ææ¹æ³ã«ã¤ãã¦ã¯Classmethodããã®ããã°ã«è©³ããä¹ã£ã¦ã¾ãã®ã§åèã«ãã¦ãã ããã JavaScriptããUser Poolsã®èªè¨¼æ©è½ã使ãæã®æ³¨æç¹ã¨ãã¦ã以ä¸ã®Appsã®ä½æã§Generate client secretã®ãã§ãã¯ãå¤ãã¦ãã ãããJava
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}