Google OAuth Login
Stably enables seamless Google OAuth authentication in our tests. With our built-in support, you can easily verify your Google integrations work correctly.
Setup Steps
Access Google Account Settings
Sign in to your test Google Workspace account at accounts.google.com
Navigate to Security Settings
Select ‘Security’ from the left sidebar menu
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.
Access OTP Secret
When the QR code popup appears:
- Click ‘Can’t scan QR code’
- This will reveal the OTP secret in text format
Create Test Account in Stably
- Open app.stably.ai in a new tab
- Navigate to Test Data > Test Accounts
- Click ‘Add Test Account’
- Select ‘Google’ as the account type
- Fill in the required details
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