[{"data":1,"prerenderedAt":54},["ShallowReactive",2],{"pattern-cognito-m2m-oauth-apigw-cdk":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":15,"extension":16,"framework":17,"gitHub":18,"highlight":6,"introBox":24,"language":28,"level":29,"meta":30,"patternArch":31,"resources":6,"s3URL":6,"services":6,"stem":49,"testing":50,"videoId":6,"__hash__":53},"patterns\u002Fpatterns\u002Fcognito-m2m-oauth-apigw-cdk.json","Amazon Cognito M2M OAuth 2.0 with custom scopes and Amazon API Gateway",null,{"text":8},[9],"Delete the stack: \u003Ccode>cdk delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Frushi-patel.json",{"text":13},[14],"cdk deploy","This pattern demonstrates how to implement machine-to-machine (M2M) authentication using Amazon Cognito, OAuth 2.0, Amazon API Gateway, and AWS Lambda.","json","AWS CDK",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fcognito-m2m-oauth-apigw-cdk","serverless-patterns\u002Fcognito-m2m-oauth-apigw-cdk","cognito-m2m-oauth-apigw-cdk","src\u002Flib\u002Fcdk-cognito-oauth-authorizer-stack.ts",{"headline":25,"text":26},"How it works",[27],"This pattern showcases the integration of Cognito as the authentication provider, allowing requests to be authorized based on custom scopes defined in OAuth 2.0.","TypeScript","300",{},{"icon1":32,"icon2":37,"icon3":40,"line1":44,"line2":47},{"x":33,"y":34,"service":35,"label":36},20,50,"cognito","Amazon Cognito",{"x":34,"y":34,"service":38,"label":39},"apigw","Amazon API Gateway",{"x":41,"y":34,"service":42,"label":43},80,"lambda","AWS Lambda",{"from":45,"to":46},"icon1","icon2",{"from":46,"to":48},"icon3","patterns\u002Fcognito-m2m-oauth-apigw-cdk",{"text":51},[52],"See the GitHub repo for detailed testing instructions.","gquqT7hHpdP6p9BkEkuBhl-N6m8I2Nz3SQ31imYneXQ",1778846883972]