Authentication Support for QA.tech
QA.tech supports most common authentication setups. If your preferred authentication method isn’t listed below, let us know, and we’ll consider adding it to our roadmap.What We Support
| Authentication Method | Description | Setup Required |
|---|---|---|
| Username + Password | Standard form-based login with username/email and password | Basic Config |
| Email + Password | Login using email address and password | Basic Config |
| OTP via Email | One-time passwords sent to email addresses | Email Config + Inbox |
| Magic Link Login | Passwordless login via email links | Email Config + Inbox (auto-generated) |
| Two-Factor Authentication (2FA) | Time-based codes from authenticator apps (Google Authenticator, Authy, etc.) | Advanced Config (see below) |
What We Don’t Support
- BankID - Requires custom workarounds in your testing environment (see guide)
- CAPTCHA challenges - Most CAPTCHA types (reCAPTCHA, hCAPTCHA, etc.) are not supported.
Setting Up Authentication
Basic Credentials (Username/Password or Email/Password)
For standard login forms, create a config in your project settings:- Go to Project Settings → Configs
- Click Add Config
- Select Username + Password Credentials or Email + Password Credentials
- Fill in your test account credentials
- Click Save
Email-Based OTP
For authentication flows that send one-time passwords to email:- QA.tech provides dedicated email inboxes for each project
- The AI can automatically read OTP codes from emails sent to these addresses
- Configure email settings in Project Settings → Configs
- When writing tests, the AI will wait for and extract OTP codes automatically
Magic Link Login
For passwordless authentication via email links:- QA.tech automatically provides a magic link email address for each project (no setup required)
- Enter this email address in your application’s login form
- The AI automatically waits for the email, extracts the login link, and navigates to it
Two-Factor Authentication (2FA)
QA.tech allows testing login flows that are protected by Two-Factor Authentication (2FA).How 2FA Testing Works
Most modern 2FA systems use Time-based One-Time Passwords (TOTP). This is the constantly changing, 6-digit code you see in apps like Google Authenticator, Authy, or Microsoft Authenticator. To test this, our AI needs the secret key that your application uses to generate these codes. You provide this secret key to us once, and our AI handles the rest.- Your Role (One-Time Setup): You will create a special
Configin your QA.tech project settings. Instead of giving us a static 6-digit code, you will provide a special secret key in a format called a URI. - Our AI’s Role (During Every Test): When the AI agent encounters a 2FA screen during a test, it will use the secret URI you provided to generate a fresh, valid 6-digit code at that exact moment. It then automatically enters the code to complete the login.
Setting Up a 2FA Config
Follow these steps to create a config for a test user account that has 2FA enabled.1
Get Your 2FA QR Code
Log in to the application you want to test and go to the security settings for your test user. Find the option to enable Two-Factor Authentication and proceed until the application shows you a QR code.Stop here. Do not scan it with your phone. We need to extract the secret key from this image.
2
Decode the QR Code to Get the URI
The QR code contains a secret key that our AI needs. You can use a free online tool to extract this key.
- Take a screenshot of the QR code.
- Go to a site like scanqr.org in your browser.
- Upload the screenshot of the QR code.
- The tool will decode it and reveal a string of text called a URI. Copy this entire string. It will look something like this:
3
Create the Config in QA.tech
Now, let’s add the credentials and the secret URI to QA.tech.
- Navigate to your QA.tech project, go to Settings, and click on the Configs tab.
- Click the Add Config button.
- From the list of types, select Username + Password Credentials - with Two-Factor Authentication.
- Fill in the form:
- Config Name: Give it a memorable name (e.g., “Admin User with 2FA”).
- Username: The username for your test account.
- Password: The password for your test account.
- One-Time Password URI: Paste the full
otpauth://URI you copied from the QR code scanner.
- Click Save.
Running Tests with 2FA Enabled
You’re all set! You do not need to add any special instructions to your tests like “enter the 2FA code.” When you ask the AI to perform a test that involves logging in (e.g., “Log in and check the user dashboard”), the agent will automatically:- Use the username and password from your new config.
- When it sees the 2FA input screen, it will automatically generate a valid code using the URI you provided.
- It will enter the code and complete the login before proceeding with the rest of your test instructions.