Using Amazon Cognito to require a user to log into a web application

 Amazon Cognito lets you add user sign-up, sign-in, and access control to your web applications. Amazon Cognito scales to millions of users and supports sign-in with social identity providers, such as Facebook, Google, and enterprise identity providers such as OAuth2. In this tutorial, OAuth2 and Amazon Cognito are used to protect a web application. This means a user has to log into the application by using the credentials of a user defined in an Amazon Cognito User Pool. For example, when a user accesses a web application, they see a web page that lets anonymous users view a log in page, as shown in the following illustration.

When the user clicks the log in button, they are presented with a log in form where they can enter their user credentials.



After the user enters their credentials, they can access the web application.

To read this tutorial, click: https://github.com/awsdocs/aws-doc-sdk-examples/tree/master/javav2/usecases/creating_amazon_cognito_app


I work on AWS Java code that helps AWS developers. Included in this role is working with AWS Services such as S3, DynamoDB, EC2, Lambda functions, and so on. 

https://www.linkedin.com/in/scottmacdonald2010/

Comments

Popular posts from this blog

Building and Deploying a Fargate Container that runs Python and performs CloudWatch Logging

Asynchronous DynamoDB Queries with Java Using GSIs and the AWS SDK v2 Enhanced Async Client

Automate Your API Gateway Setup with Boto3: Rendering HTML from Lambda