Authentication Testing
Verify user registration and Google OAuth login functionality
Authentication Testing
This guide focuses on verifying that both traditional email/password registration and Google OAuth authentication are working correctly in your AI SaaS platform.
Email Registration Testing
Access Your Application
Navigate to your application URL (either the Amplify URL or your custom domain if configured).
Create a New Account
- Click on "Sign Up" or "Register" button
- Enter your email address
- Create a strong password
- Complete any additional registration fields
- Submit the registration form
Verify Email
- Check your email inbox for a verification code
- Enter the verification code in the application
If you don't see the verification email, check your spam folder or request a new code.
Confirm Dashboard Access
After verification, you should be redirected to the dashboard. Verify you can see:
- Your user profile information
- Available services
- Credit information (likely showing 0 or free trial credits)
Google OAuth Testing
Sign Out and Return to Login
- Sign out of your current session
- Navigate back to the login page
Sign In with Google
- Click on the "Sign in with Google" button
- Select your Google account from the prompt (Use an account that was added as a test user in Google Cloud Console)
- Grant any permissions requested
Verify Successful Authentication
- You should be redirected back to your application
- Confirm you're logged in successfully
- Verify you can access the dashboard and user-specific areas
For new Google users, a new account should be automatically created in your system.
Verify Account in AWS Cognito
For a deeper verification, you can check that user accounts are being properly created in AWS Cognito:
Access AWS Cognito Console
- Log in to the AWS Management Console
- Navigate to "Cognito" > "User Pools"
- Select your user pool (named something like
${app_name}-${stage}-UserPool
)
Check User Accounts
- Click on "Users and groups" or "Users" tab
- Verify that your test accounts appear in the list
- For Google-authenticated users, check that the identity provider is correctly set to "Google"
Next Steps
Now that you've verified authentication is working correctly, proceed to Subscription Testing to verify the payment and subscription functionality.