Tuesday, January 12, 2021

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/

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Deploying a Java web application to Amazon ECS

 You can deploy a Java web application that uses the AWS SDK for Java (v2) to Amazon Elastic Container Service (Amazon ECS). Amazon ECS is a...