Building a secure authentication service is a complex and time-consuming task and you expose your app and your users to unnecessary risks. This is where third-party authentication services come in.
If you're already heavily invested in the AWS ecosystem, Cognito offers a seamless and secure way to manage user authentication for your web and mobile applications since it integrates smoothly with other AWS services like API Gateway and IAM.
Amazon Cognito is an identity platform for web and mobile apps. It’s a user directory, an authentication server, and an authorization service for OAuth 2.0 access tokens and AWS credentials.
An Amazon Cognito User Pool is a fully managed user directory that simplifies user authentication and authorization for web and mobile applications. It securely stores user information, handles user sign-up, sign-in, and password recovery.
An Amazon Cognito Identity Pool is a service that simplifies user authentication and authorization for web and mobile applications. It manages user identities, provides temporary AWS credentials, and enables flexible access control to AWS resources.
This tutorial is intended for beginners, as such we’ll be utilizing the AWS Console instead of the CLI. Additionally, I am expecting that you already have your AWS Account ready for use.
Go to your AWS Console, and look for Cognito. Click on Create User Pool.
Once your User pool has been created, you can click on it and navigate to App integration. Once you're there, scroll down to your App clients and click on your App client. Navigate to the Hosted UI segment and click on View Hosted UI.
Signing in will not give any response, as we didn't handle our callbacks properly.
This walkthrough introduced you to Amazon Cognito's user pools and hosted UI service, which is just the beginning of your journey through the Amazon cloud.