Spring boot Authentication server using AWS cognito

Eric Anicet
4 min readJul 22, 2021

In this story, we’ll implement an authentication microservice using Amazon Cognito.

Photo by Meritt Thomas on Unsplash

Our microservice offers REST resources (signUp, signIn, forgotPassword, signOut) which allow full control over all aspects of the user’s authentication flow.

What Is Amazon 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.

The two main components of Amazon Cognito are user pools and identity pools. User pools are user directories that provide sign-up and sign-in options for your app users. Identity pools enable you to grant your users access to other AWS services. You can use identity pools and user pools separately or together.

https://docs.aws.amazon.com/cognito/latest/developerguide/what-is-amazon-cognito.html

Amazon Cognito Setup

Step 1: Creating a User Pool

  1. Login to the AWS Management Console and open the AWS Cognito console at https://console.aws.amazon.com/cognito.
  2. Choose Manage User Pools.

--

--