Skip to content

Instantly share code, notes, and snippets.

@faermanj
Last active March 19, 2023 13:39
Show Gist options
  • Save faermanj/abc31d2fefca6701e87a9e3a9e885c18 to your computer and use it in GitHub Desktop.
Save faermanj/abc31d2fefca6701e87a9e3a9e885c18 to your computer and use it in GitHub Desktop.
API Authentication with Amazon Cognito

In the previous episodes we implemented the fundamental components of a tyical web application: "static" content and "dynamic" APIs. For each component, we´ve been using the most out of AWS services, such as S3, CloudFront, Lambda and API gateway. But so far we have only been working with public resources. Let us now learn more about user authentication and authorization in two very important services: AWS Identity and Access Management and Amazon Cognito. Even more importantly, let us integrate that within our React application ;)

  • Serverless Architecture Review
  • Introduction to Amazon Cognito
  • Cognito User Pools
  • Cognito Federated Identities
  • Cognito Identity SDK
  • AWS SDKs
  • Integrating with Javascript and React
  • Implementing Authentication Flows
  • Resources

AWS re:Invent 2016: Serverless Authentication and Authorization: Identity Management (MBL306)

AWS re:Invent 2016: Add User Sign-In, User Management, and Security with Amazon Cognito (MBL310)

SpaceFinder reference app

Integrating User Pools with Javascript

Fix Html webpack plugin

http://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-using-tokens-with-identity-providers.html

http://docs.aws.amazon.com/lambda/latest/dg/nodejs-prog-model-context.html

http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-generate-sdk.html

@habibtalib
Copy link

Hi Julio, can share the code in repo ? And I cant find the previous tutorial regarding apigclientfactory.

@midapsh
Copy link

midapsh commented Feb 22, 2020

Hello sir! I really liked your content. Just one tip: I think some URL are not up-to-date. Could you update it for the others? thanks in advance!

( I think these are the updated links)
"static": https://gist.github.com/faermanj/bf35079ad64cbbb5bfa85f1878ad023c
"dynamic" APIs.: https://gist.github.com/faermanj/04cfb15ed116a9d8c9cbfb52ee46b923

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment