Introduction

Cross-Site Testing Scenario with AWS Cognito

In this scenario, we will operate two websites running on local servers (localhost).

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

Testing Procedure:

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

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

  3. Log Out of Website 1: Perform a log out from Website 1.

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

The purpose of this test is to assess session management and user authentication capabilities across websites using AWS Cognito. This helps to examine whether logging into one site affects the login state on another site, an important factor in ensuring security and providing a seamless user experience.