Add AWS Cognito Auth to Your Angular App Without Amplify

AWS Cognito is an identity management service that helps developers implement authentication in their apps in lesser time. With Cognito, developers don’t have to spend much time and effort to build authentication flows from scratch and worry about scalability, security, etc.

The common approach to integrate Cognito into a single-page app is to use Amplify library. However, using the entire Amplify library may be overkill if we only want to use it for implementing Cognito authentication features in our app.

In this article, we are going to add Cognito auth to an Angular app with a minimum number of dependencies. Even though this article specifically focuses on the Angular framework, you will be able to tweak the code in this article a bit and use it in any single page application.

Implementing Cognito User Login and Signup in ASP.NET Core using AWS SDK

While it is the most recommended approach for applications, some designs prefer having a layer of their API that would communicate with Cognito for authorization, as a matter of decoupling Cognito with the Client (so as to have flexibility or better control).

In this article, let's look at how we can design and build such an API that encapsulates all of User Identity Management functionalities such as Login, Signup, Password Reset, Update profile and so on, while internally communicating with Cognito for respective flows.

Integrating with Aarogya Setu Open API on AWS to ensure a safe workspace

This post walks you through an example application that can fetch a person’s COVID-19 risk status from ASetu. It can act as reference of how to integrate your own visitor management system with ASetu using AWS services.

The Indian government announced the Open API Service from Aarogya Setu (ASetu) in August, 2020. It enables organizations and business entities to fetch the COVID-19 risk status of their employees or any other ASetu app users.