Set up user credentials with AI Sign-in
Last updated: December 2, 2026
With AI Sign-in, an AI agent signs in to a web application as each user credential added to the target, so that scans and pentests can test the pages behind the login. Astra runs a sign-in check on every user credential, and scans use a user credential only after it is Verified. This article covers adding a user credential with every login method, the Agent guidance that tells the agent how to finish the login, how to read the sign-in check, and how to manage user credentials afterwards.
Availability
These screens appear on web application targets that use AI Sign-in. If User Credentials shows the previous login form instead, read How AI Sign-in differs from the previous login form to see how the two differ and how to move the target to AI Sign-in. If a sign-in check fails or an email doesn't arrive, read Troubleshoot user credential sign-in.
Open the user credentials and choose a login method
These steps are the same for every login method. After choosing the method, continue in the section for that method.
Open the target, and then open its Settings.
Click User Credentials.
Click Add User Credentials if the page is empty, or Add Credential if the list already has user credentials.
In the Add User Credential sheet, choose the login method that matches the application's login page.
Add a user credential for every level of access the application has, for example an administrator and a regular user. If the application serves separate customers or organizations, add user credentials from more than one of them. Astra uses the Privilege Level (Privileged or Non-Privileged) to check that each kind of user only reaches what it should.
When the page is empty, it shows the three parts of the setup: Choose The Login Method, Add Sign-In Details, and Save The User Credential.

The User Credentials page before any user credential is added.

Choose the login method first.
Username + Password
Use this method when the application signs in with a username and password, and no extra step.
Choose Username + Password.
Enter the User Credential Name and choose the Privilege Level: Privileged or Non-Privileged.
Enter the Username and Password.
Add Agent guidance, and then save, as described in Add agent guidance and save.

Account details for a Username + Password user credential.
Password + Authenticator
Use this method when the application asks for a password and then a code from an authenticator app.
Choose Password + Authenticator.
Enter the User Credential Name and choose the Privilege Level.
Enter the Username, Password, and Authenticator Setup Key. The setup key is the key shown when the authenticator app was first set up, usually next to the QR code. Astra uses it to generate the same codes as the app.
Add Agent guidance, and then save, as described in Add agent guidance and save.
Email Code
Use this method when the application emails a sign-in code. Astra provides a Sign-in email for the user credential, and a Mailbox that shows the messages sent to it.
Choose Email Code.
Enter the User Credential Name and choose the Privilege Level.
Click Copy next to Sign-in email, and create a user account in the application with that address.
Verify the account: open the verification email in the Mailbox panel, or mark the account as verified in the application's admin console. Grant the account any privileges it needs to sign in.
If the login page asks for a password before it sends the code, turn on My app also asks for a password and enter the Password. Leave the toggle off when the application signs in with the email alone.
Add Agent guidance, and then save, as described in Add agent guidance and save.

Email Code setup, with the Sign-in email, the Mailbox panel, and the optional password toggle.
Magic Link
Use this method when the application emails a sign-in link. Astra provides a Sign-in email and a Mailbox, the same way it does for Email Code.
Choose Magic Link.
Enter the User Credential Name and choose the Privilege Level.
Click Copy next to Sign-in email, and create a user account in the application with that address.
Verify the account from the Mailbox panel or the application's admin console, and grant any privileges the account needs to sign in.
If the login page asks for a password before it sends the link, turn on My app also asks for a password and enter the Password.
Add Agent guidance, and then save, as described in Add agent guidance and save.

Magic Link setup, with the Sign-in email, the Mailbox panel, and the optional password toggle.
After the user credential is saved, open it and go to the Mailbox tab to see the messages sent to the Sign-in email, grouped by date. Used by agent means the sign-in agent already used that message. The Mailbox tab works the same way for Email Code.

The Mailbox tab lists messages grouped by date. Used by agent means the sign-in agent already used that message.

An opened message on the Mailbox tab. Used by agent means the sign-in agent already used it, and Back to mailbox returns to the list.
SSO Only
Use this method when the application signs in through another service, with no extra authenticator step.
Choose SSO Only.
Enter the User Credential Name and choose the Privilege Level.
Set Sign-In Provider to Microsoft.
Enter the Username Or Email and Password for that provider.
Add Agent guidance, and then save, as described in Add agent guidance and save.
Note
Google is marked Coming soon as a Sign-In Provider for both SSO methods. It can't be selected, and a user credential that uses it can't be checked. If the application signs in with Google, contact support. Don't choose a different login method unless that is how the application actually signs in.
SSO + Authenticator
Use this method when the application signs in through another service and then asks for a code from an authenticator app.
Choose SSO + Authenticator.
Enter the User Credential Name and choose the Privilege Level.
Set Sign-In Provider to Microsoft.
Enter the Username Or Email, Password, and Authenticator Setup Key.
Add Agent guidance, and then save, as described in Add agent guidance and save.
Authenticated Header
Use this method when access is granted with a header and token sent on each request.
Important
Authenticated Header has to be the only user credential on the target. It can't be combined with other login methods. If other user credentials already exist, Authenticated Header is unavailable in the grid.
Choose Authenticated Header.
Enter the User Credential Name and choose the Privilege Level.
Enter the Header Name and Token.
Click Save and verify. Agent guidance is not required for this method.
Add agent guidance and save
Agent guidance tells the sign-in agent how to complete the login. At least one option is required for every method except Authenticated Header.
Under Agent guidance, choose at least one of the following:
Instructions (Recommended): write the sign-in steps in your own words, one per line, in order.
Login Recording (Easiest to set up): upload a JSON recording of signing in as this user credential. Click Read the recording guide for help.
Custom Script (Most flexible): upload a Puppeteer script that signs in as this user credential. Click Read the script guide for help.
Optionally add a Description.
Click Save and verify to save the user credential and start a sign-in check. Save stores the details without starting a check; the status then stays Not verified until a check runs.
Important
DAST scans can't follow written instructions. Add a login recording or a custom script to include this user in those scans.

Agent guidance, with Instructions, Login Recording, and Custom Script.
On the Overview tab, Agent guidance shows Sign-in steps when written instructions were added. After a sign-in check, Astra may add a Login script or a Corrected script, which can be opened, downloaded, or removed.
Close the sheet before setup is finished
Closing the sheet before saving asks what to do with the unsaved work.
Leave Without Finishing? appears when the sheet is closed with unsaved changes. Discard changes closes the sheet without adding anything, and Keep editing returns to the form.
Keep This Login? appears when a new Email Code or Magic Link user credential is closed before setup is finished. Keep leaves the reserved Sign-in email assigned to this user credential. Discard releases the address, so it stops working for Astra.

Leave Without Finishing? appears when the sheet is closed with unsaved changes.

Keep This Login? appears when a new Email Code or Magic Link user credential is closed before setup is finished.
Check the sign-in result
The Status column shows where each sign-in check stands. A scan uses a user credential only after it is Verified.
Status | What it means |
|---|---|
Not verified | A check has not run yet. Click Verify. |
In progress | The agent is signing in. The user credential can be viewed but not edited until the check finishes. |
Verified | Astra signed in. The Overview tab shows VERIFIED and Signed in as the user credential name. Scans can use this user credential. |
Failed | Astra could not sign in. The reason is shown in the user credential. Click Retry. |
Incomplete | Required details are missing. Click Finish setup. |
Canceled | The check was stopped before it finished. Click Verify. |
Can't be checked | The login method or Sign-In Provider is marked Coming soon. |
If any user credential still needs details, a notice at the top of the page shows how many need to be finished before a scan can use them.

Each user credential shows a status, with a shortcut action when one applies.
Click a user credential to see its latest check on the Overview tab.
Before a check: the tab lists the steps the check will run, in grey, and a How the agent signs in summary with Edit details.
While a check runs: the sheet shows VERIFYING LIVE and Signing in as the user credential name. The sheet can be closed; the check keeps running. Cancel check stops it.
After a successful check: the tab shows VERIFIED, Signed in as the user credential name, and a timeline of the check. For Magic Link, the timeline includes Received the sign-in link and Opened the sign-in link.
After a failed check: the tab shows VERIFICATION FAILED, the step that stopped, Last screen the agent saw, and a Most likely fix. Use Edit sign-in details, and then Save and verify or Retry check.

Before a check, the Overview tab lists the steps the check will run.

After a successful check, the Overview tab shows VERIFIED, Signed in as the user credential name, and the check timeline.

While a check is running, the sheet shows VERIFYING LIVE.

A failed check shows why Astra couldn't sign in, including the last screen the agent saw.
For step-by-step fixes, read Troubleshoot user credential sign-in.
Manage user credentials
Each row has a status, a shortcut action when one applies, and a menu.
Finish setup appears when the status is Incomplete.
Retry appears when the latest check Failed.
Verify appears when the status is Not verified or Canceled.
Edit opens the user credential. It isn't shown while a check is In progress.
Verify Again runs the check again without changing any details. It appears only when the user credential is Verified.
Duplicate starts a new user credential with the same login method and account details. Login recordings and custom scripts start empty. It isn't available while a check is In progress, or when the target uses Authenticated Header.
Delete removes the user credential after confirmation. For Email Code and Magic Link, the confirmation explains that if an account was already created in the application with this Sign-in email, deleting the user credential makes that account unusable for Astra.

The row menu on the User Credentials page, with Edit, Duplicate, and Delete.
FAQ
Can the Sign-in email Astra provides be used to receive the application's email codes?
Yes. Choose Email Code, copy the Sign-in email, and create the user account in the application with that address. Verification and sign-in codes sent to that address appear in the Mailbox. The same applies to Magic Link when the application sends a sign-in link.
Can Astra sign in when the application sends a one-time email code or a magic link?
Yes. Choose Email Code or Magic Link when adding the user credential, create the account in the application with the Sign-in email, and use Save and verify. The Mailbox shows whether the code or link arrived.
Can login details be checked without running a scan?
Yes. Save and verify checks the sign-in by itself and doesn't start a scan. The Status column then shows Verified or Failed. To check a verified user credential again, choose Verify Again from the row menu. To start a first check on a Not verified or Canceled user credential, click Verify.
On a target that still uses the previous login form, the details are saved without a check. To check them without a security scan, run a crawl: Automated Crawling (Web) signs in with the target's login details and explores the target, so no vulnerabilities are reported.
Go to Web DAST > DAST Scans and click Start a Scan.
Under Scan Type, choose Automated Crawling (Web), and then click Select Target.
Select the target and click Start Scan.

Automated Crawling (Web) explores the target without performing a security scan.
Open the crawl from the DAST Scans page. Under Progress, click Timeline if the steps are hidden, and check the Login Recording step:
Login Recording with a green check: Astra signed in. The Sitemap lists the pages the crawl found, and pages that only appear after signing in confirm the login worked.
Couldn't log in: Astra couldn't sign in, and the reason is shown below it. Update the login recording, custom script or credentials, and then run the crawl again.
No Login Recording step: the crawl didn't sign in. Check that the target's login details are added under User Credentials.

A finished crawl with a green check on Login Recording, so Astra signed in.