Google OAuth Login
Pre-requisites
- The Google account you wish to use must be a Google Workspace Account (not a regular @gmail one)
- For this Google Account, make sure “Advanced Protection” under Google Workspace Admin settings is turned off
- Make sure that this is a test account, and does not contain actual, confidential user information
Setup Steps
Go to `accounts.google.com` and login to the test Google Workspace account
From the sidebar menu, click on 'Security'
Scroll down to the 'How you sign in to Google' and click on the 'Authenticator' option
Click on 'Add Authenticator' (if you have added one already, click 'Change Authenticator App')
Note: This will invalidate your previous Authenticator app setup.
A pop-up with a QR code will open. Select the 'Can't scan QR code' to view the OTP secret in plaintext
Open app.stably.ai in a new tab and navigate to Test Data > Test Accounts and click 'Add Test Account', and fill in all the details (make sure to select 'Google' under account type)
For the OTP Secret, copy paste the OTP secret from the earlier Google Accounts page
In Stably, you'll see an OTP with a 30 second timer, click on the 'Copy OTP' button to copy this
Go back to the Google Accounts and in the pop-up that's open, click 'Next', paste the copied OTP, and click 'Verify' again to verify and finish the Authenticator setup
Back in Stably, click 'Add Test Account' to finish Test Account creation
Go back to Google Accounts page, turn on 2FA, and under the 'Second Steps' section, make sure only the Authenticator is valid (you might have to sign out of the Google Account on mobile devices)
You can now use this Google OAuth account in tests
Was this page helpful?