Amazon Cognito Service

Amazon Cognito Implmentation

Saqib Ullah Siddiqui
2 min readSep 17, 2023

If you are developing applications using AWS services and your Web or Mobile Apps required authentication and authorization, then you should use Amazon Cognito. This service help you to implement identity and access management (IAM) into your application without any hassle.

I’m assuming you know basics of Amazon Cognito service. There are so many articles and blogs over the internet which covers the AWS Cognito features and options here!

For Authentication and Authorization Amazon Cognitor provide two pools.

  1. User Pool, allow end user to sign in by authenicating through their social identity providers.
  2. Identity Pool, allow user to obtain temporary & limited priviliege AWS credentials that authorize access to other services.
Amazon Cognito User Pool and Identity Pool

In this article, I will give you the brief working overview of Cognito service with custom application which required access to Amazon DynamoDB table.

I will give you the brief working overview of Cognito service with custom application which required access to Amazon DynamoDB table.

Amazon Cognito Implementation with Amazon DynamoDB Table
  1. The AWS Cognito User Pool serves as a user directory responsible for handling the tokens returned by social sign-in providers or enterprise identity providers via SAML 2.0, effectively managing the associated complexities.
  2. Following a successful user pool sign-in, your application will receive user pool tokens from the Cognito service. These tokens can subsequently be employed to acquire AWS credentials through Amazon Cognito identity pools.
  3. Utilizing these credentials grants your web or mobile solutions the ability to interact with different AWS services, eliminating the necessity to embed extended-term AWS credentials within your application.

After reviewing above concepts, you now possess a more comprehensive understanding of the Amazon Cognito service !

--

--

Saqib Ullah Siddiqui
Saqib Ullah Siddiqui

Written by Saqib Ullah Siddiqui

I read to know, I write to recall.

No responses yet