Writing an Authentication service for a Golang project using AWS Cognito is quite simple if you know where to search for information.
Let’s start from the beginning.
Set up Cognito
What is AWS Cognito?
Amazon Cognito provides authentication, authorization, and user management for your web and mobile apps. Your users can sign in directly with a user name and password, or through a third party such as Facebook, Amazon, Google or Apple.
In this article, we’ll talk about how to perform various operations just with username and password using the AWS SDK library (https://github.com/aws/aws-sdk-go) and the Echo web framework.
First of all, let’s create a User Pool, a user pool is a user directory in Amazon Cognito, this will contain all information to access your web application.
From the AWS reach the Cognito page and Create User Pool as shown below: