Introduction

Cross-Site Testing Scenario With AWS Cognito

In this scenario, we will have two websites running on the local machine (localhost).

  • Website 1: http://localhost:3000
  • Website 2: http://localhost:3001

Testing Process:

  1. Open Website 1: Access the first website at http://localhost:3000 and log in.

  2. Check Website 2: After logging into Website 1, open Website 2 at http://localhost:3001. The goal here is to confirm that the user does not need to log in again to view the homepage of Website 2.

  3. Log Out From Website 1: Log out from Website 1.

  4. Refresh Website 2: Refresh Website 2 to check whether the user still has access to the homepage of Website 2 after logging out of Website 1.

The purpose of this test is to evaluate the ability to manage sessions and authenticate users across websites using AWS Cognito. This helps test whether logging in on one website affects the login state on another website, which is an important factor in securing and providing a seamless user experience.