CSC-305-app / TuneTailor

0 stars 0 forks source link

US2 User login #15

Open wtsafack opened 5 days ago

wtsafack commented 5 days ago

User Login (with Spotify, Apple Music, SoundCloud, and Firebase Integration) AS A user, INSTEAD OF manually entering my credentials every time, I WANT TO log in using a secure, streamlined login process that supports Spotify, Apple Music, and SoundCloud logins IN under 5 seconds TO access my account SO THAT I can quickly and securely start using the application without delays. Additionally, the system should use Firebase to handle authentication and store user credentials securely.

SCENARIO: Successful login with valid credentials GIVEN that I am on the login page and have an existing account, WHEN I choose to log in with Spotify, Apple Music, SoundCloud, or through the standard username/password option, AND I successfully authenticate using my chosen platform or credentials, THEN I should be redirected to my dashboard WITHIN 2 seconds, AND the system should remember my login credentials for future logins WITHIN 10 seconds (if I chose the "Remember Me" option). Firebase will handle this authentication process and securely store the user's data.

Other acceptance criteria scenarios: SCENARIO: Incorrect password GIVEN that I am on the login page, WHEN I enter an incorrect password, AND click the login button, THEN I should receive an error message informing me that the credentials are incorrect WITHIN 1 second, AND be prompted to re-enter my credentials WITHOUT resetting the username field. For third-party logins like Spotify, Apple Music, or SoundCloud, any authentication failure should display a message specific to the platform.

SCENARIO: Account locked after multiple failed attempts GIVEN that I have entered incorrect credentials multiple times, WHEN I exceed the allowed number of login attempts (e.g., 3), THEN my account should be temporarily locked for 15 minutes WITHIN 5 seconds of the third attempt, AND I should receive an email notification with instructions on how to unlock my account. This applies to all login methods, including Spotify, Apple Music, and SoundCloud, with Firebase managing the lockout and notification process.

SCENARIO: Forgotten password (Standard login) GIVEN that I have forgotten my password, WHEN I click the "Forgot Password" link, AND I provide my email address, THEN I should receive a password reset email WITHIN 2 minutes, AND I should be able to reset my password through the link provided in the email. Firebase will handle the password reset functionality.

SCENARIO: Forgotten password (Spotify, Apple Music, SoundCloud login) GIVEN that I have forgotten my Spotify, Apple Music, or SoundCloud credentials, WHEN I attempt to log in using one of these platforms, THEN I should be redirected to the appropriate platform's password recovery process, AND upon successfully recovering my credentials, I should be able to return to the app and log in seamlessly.

SCENARIO: Firebase authentication setup GIVEN that Firebase is integrated into the app for secure login, WHEN I log in through any method (Spotify, Apple Music, SoundCloud, or standard), THEN my credentials should be securely authenticated and stored in Firebase, AND Firebase should manage user sessions and remember login preferences (if "Remember Me" is selected).