
Master Amazon Cognito fundamentals through a hands-on, security-focused course that demonstrates authentication and authorization, and configures user and identity pools with practical code.
Identity anchors app security and value by tying authentication, authorization, and data ownership to a scalable, user-friendly experience.
Explore how Amazon Cognito delivers authentication, authorization, and user management via user pools, social logins, and Lambda triggers, then provides temporary AWS credentials for secure serverless apps.
Explore Amazon Cognito's user pool and identity pool, enabling sign up with username and password or single sign-on via Facebook, Google, Amazon, or SAML, with tokens for secure access.
Describe how a Cognito user pool acts as a directory for app users, enabling sign up and sign in, and multifactor authentication workflows, verifications, lambda triggers, and social sign in.
Create a user pool in Amazon Cognito by configuring attributes, sign-in options, and verification settings. Learn about password policies, multi-factor authentication, admin approval, lambda triggers, and messaging customization.
Explore managing users and groups in general settings, with one user in multiple groups, sign up via your app's UI, testing via the console, and roles inherited by group members.
Use the Cognito hosted user interface to manage sign up, sign in, and password flows with app client and domain. Authenticate to obtain tokens and learn code and implicit grant.
Explore how Amazon Cognito returns ID, access, and refresh tokens after authentication, and how JWT-based tokens carry claims, including user identity and token scope for secure access.
Understand the three OAuth flows—implicit grant, authorization code grant, and client credentials grant—and learn how tokens are issued, exchanged, and refreshed to secure web and machine-to-machine access.
Discover how to customize Amazon Cognito flows with lambda triggers across sign-up, authentication, and migration, including pre sign-up, custom message, post confirmation, pre authentication, and pre token generation.
Explore federation in Amazon Cognito, enabling single sign-on with Facebook, Google, and other identity providers; learn how Cognito mediates tokens and maps attributes to user profiles.
Explore how Cognito tokens enable direct resource access, API gateway validation, and identity pool exchanges for temporary credentials, with jwt verification and permission checks.
Learn to secure API gateway with Cognito user pool tokens, validating ID and access tokens to grant authenticated users access to Lambda or other resources, and configure authorizers and deployment.
Explore how identity pools provide temporary credentials and granular access by mapping users to roles and supporting authenticated and unauthenticated access, unlike user pools that handle authentication.
Authenticate with Facebook via the Facebook SDK, obtain tokens, and exchange them for temporary Cognito credentials from an identity pool; use these to add items to DynamoDB without API Gateway.
Use an identity pool with a user pool to exchange id and access tokens for temporary AWS credentials, enabling adding items to a DynamoDB table via hosted UI authentication.
Explore the common usage scenarios for Amazon Cognito, including identity pools with api gateway authorizers and token validation, user pools with customer validation, and obtaining credentials from identity pools.
Explore Cognito pricing: pay for user pool MAUs, with 50,000 free MAUs and a free tier; sign-ins via SAML/OpenID Connect or social providers cost 0.05 per user.
Clean up the demo environment after Cognito setup by deleting user pools, identity pools, API Gateway, Lambda functions, IAM rules, Facebook apps, DynamoDB, and S3 or CloudFront.
Get started with Amazon Cognito to make your applications more secure, and reach out with any questions or feedback.
Implementing security for your application is not easy, starting with managing username and password in a database it quickly gets complicated with authentication flows, access control and token management. Amazon Cognito provides a simple and secure way to add authentication and access control to your application. Amazon Cognito is a serverless service and scales to millions of users without any further configuration. Amazon Cognito supports sign-in with social identity providers like Facebook, Google, and Amazon and enterprise identity providers via SAML 2.0.
Some of the core features of Amazon Cognito are:
Secure and scalable user directory
Identity federation with social and enterprise identity providers
Access control for AWS resources
Easy integration with SDK and built-in UI
This course is a technical hands-on course to use Amazon Cognito for securing your application. The primary objectives of this course are:
Understand the importance of identity, authentication and authorization
Understand Amazon Cognito's core features
Detailed look at tokens and token management
Add single-sign-on feature to our application
Secure API gateway API using Cognito user pool authorizer
Understand and implement Amazon Cognito identity pool to securely access AWS services or other backend resources directly from application
Implement identity pool with user pool and other identity providers like Facebook, Amazon, etc.
Common usage scenario for user pool and identity pool
All the source code for the lab exercises is attached to the first section and individual lab lecture.