Authenticated scanning
An access profile represents one account or role on a verified website. Enterprise authenticated scanning is introduced through a controlled pilot; availability must be enabled for your organization. Public scans continue to work independently.
By default, Enterprise is eligible. Superadmins can change the eligible plans for the controlled rollout; this does not change API access, roles, page limits or scan allowances.
What is supported
| Method | Setup | Recurring scans |
|---|---|---|
| HTTP Basic | HTTPS origin, username and password | Credentials are restricted to that origin. |
| Login form | Login URL, selectors, allowed login POST endpoints and bounded fill/click/wait steps | Login establishes a session; the final step must wait for a signed-in marker. |
| SSO/MFA | Capture a session locally with Playwright or the CLI | Works while the imported application session remains valid and portable. Complete human challenges yourself. |
We do not bypass CAPTCHA/MFA, run arbitrary customer login scripts, connect to private networks, support client certificates or discover transactional workflows. Service-worker-dependent and device-bound sessions may be unsupported. Only Internet-accessible HTTPS sites with valid TLS are supported.
Use a dedicated read-only account or a staging environment. Even visiting a page can change server state; a scanner cannot guarantee that a privileged account is harmless.
Set up a profile
In Sites → your site → Settings → Authenticated scanning:
- Verify site ownership and confirm authority to scan. Ownership verification is required by default, independently of public scans. A superadmin can grant a temporary organization exception for an authorized test; permission to scan the account and pages is still required.
- Name the profile and represented account/role. Different roles need separate profiles. Account identity cannot be silently changed by editing credentials.
- Configure Basic, form login or imported session access. Passwords are write-only: replace or revoke them; they cannot be retrieved.
- Provide a protected verification URL and text visible only after sign-in, or use a CSS/Playwright selector. The marker must fail without authentication and succeed with it. By default it must also appear on every scanned page; the API supports a separate
page_assertionfor page-specific layout. - List explicit page URLs, allowed paths, exclusions, required resource origins and any read-data POST endpoints. URLs with embedded credentials or session tokens are rejected. Meaningful query parameters and hash routes are preserved within scope.
- Select evidence retention, sensitive-region masks and optional external destinations.
- Test access. Verification tests anonymous access, authenticated access and reuse in a fresh browser context. Saving credentials or changing authentication settings requires verification again.
Optional discovery follows rendered links inside the approved paths. It does not click buttons or submit forms beyond the configured login. Logout/destructive paths, unsafe requests, unapproved origins and private-network requests are blocked. Required blocked POST endpoints should be configured narrowly during setup; do not broadly allow mutations.
Inspect the login page
For a form login, enter its URL and select Inspect login page. AllyProof reads the anonymous HTML and suggests uniquely identifiable username, password and submit controls plus a same-origin POST endpoint. Review the suggestions and select Use these suggestions before they change your configuration. Inspection does not submit forms, send credentials, execute scripts or save the page HTML. It uses bounded HTTP requests, without starting a Fly browser.
JavaScript-only, ambiguous, multi-step and non-POST forms need manual setup or an imported application session. Inspection cannot discover a reliable signed-in condition from the login page: you must choose a protected page and an account/role marker. Test access still checks the signed-out, signed-in and fresh-browser states before scans can run.
Paths, exclusions, resource origins, POST exceptions, masking, retention, external permissions and scheduling are under Advanced settings: scope, privacy and scheduling. New profiles default to explicit pages, 30-day private evidence and no external processing. After saving, add credentials or import a session in the opened credentials section, then test access. Existing custom configurations remain unchanged unless edited.
Private results and permissions
Public, customer and administrator contexts have separate findings, scores, comparisons and screenshots, even for the same URL. Public badges and site summaries use public scans. Evidence drafts identify their access context and coverage; scanning selected pages does not establish whole-application WCAG conformance.
Owners/admins manage profiles. Members can run approved profiles and read results without retrieving secrets. Billing users have no access. Guests need both site access and a separate profile grant. After a downgrade, existing retained results remain readable but new authenticated scans stop.
AI processing, MCP assistants, Jira, webhooks and public sharing each require a separate admin opt-in and are off by default. Changing these permissions creates a configuration version; enabling a destination does not send historical evidence. Revocation blocks pending deliveries. Ordinary authenticated exports remain private downloads: review them before passing them to another service.
Private screenshots and HTML examples expire after 30 days by default, optionally 90 or 365. Access stops at expiry; cleanup removes stored objects in bounded batches. Non-sensitive counts and coverage history remain. Password fields and configured regions are masked after analysis, so masking does not alter measured accessibility. Automatic sanitization cannot identify every business secret; configure masks and use suitable test data.
Public sharing requires a preview of one selected scan snapshot, not a live feed. Links expire after seven days by default (maximum 30, and never beyond source evidence expiry), can be revoked and are excluded from indexing. The snapshot contains a findings summary, not credentials, browser state, HTML or screenshots.
CLI and CI
Create an API key with explicit auth:manage, auth:use and/or auth:read permissions as needed, plus the existing scan:trigger and scan:read scopes for scan commands. Restrict the key to the required profiles. Existing keys do not gain these permissions automatically. A key used to create a new profile cannot be restricted to already-existing profile IDs.
allyproof auth profiles SITE_ID
allyproof auth create SITE_ID --file profile.json
allyproof auth credentials SITE_ID PROFILE_ID --file -
allyproof auth capture SITE_ID PROFILE_ID --output /private/customer.auth-state.json
allyproof auth import SITE_ID PROFILE_ID --file /private/customer.auth-state.json
allyproof auth verify SITE_ID PROFILE_ID
allyproof scan --site SITE_ID --auth-profile PROFILE_ID --urls-file pages.json --threshold 90 --json
The credentials command reads JSON with username and password from stdin; never put passwords in command arguments. Capture requires a local interactive terminal and locally installed Playwright/Chromium. Ordinary CLI commands do not download a browser. --indexed-db captures only configured authentication stores. Capture exports the target application's cookies/localStorage, selected IndexedDB and sessionStorage, not general Google/Microsoft identity-provider sessions. Treat the file as a password, keep it outside version control, caches and artifacts, then delete it.
In CI, import a short-lived session from your secret store with --job-only. Use the returned auth_session_id with scan --auth-session ID. It does not replace the saved scheduling session. A job-only session expires on completion/cancellation, with a two-hour cleanup ceiling. Saved sessions default to seven days, configurable from one hour to 30 days; the target provider can expire them sooner. Saved passwords remain encrypted until replaced, revoked or site/profile deactivation.
# Environment values come from the CI secret store; disable shell tracing.
set +x
SESSION_ID=$(printf '%s' "$ALLYPROOF_AUTH_STATE" | allyproof auth import "$SITE_ID" "$PROFILE_ID" --file - --job-only | jq -r '.auth_session_id // .data.auth_session_id')
unset ALLYPROOF_AUTH_STATE
allyproof scan --site "$SITE_ID" --auth-profile "$PROFILE_ID" --auth-session "$SESSION_ID" --threshold 90 --json
Authenticated commands poll to completion by default. Incomplete coverage exits nonzero even if the evaluated pages exceed the score threshold. --no-wait only queues a job; it is not a CI acceptance check. JSON includes requested, discovered, evaluated, failed and skipped counts plus a safe failure code, stage and recovery action.
REST and MCP
Profile endpoints are under /api/v1/sites/{site_id}/auth-profiles: metadata CRUD, /{id}/credentials, /session, /job-session, /verify, /scan and /scans. Secrets are accepted only by write endpoints and never returned. POST /api/v1/scan accepts auth_profile_id, optional auth_session_id and urls; authenticated jobs return an accepted job ID and polling URL. Existing public requests retain their behavior.
MCP exposes list_auth_profiles, verify_auth_profile, authenticated_scan_status, and scan_site/list_violations with auth_profile_id. Reading private evidence through an assistant additionally requires the profile's MCP opt-in. Never paste passwords, cookies or session files into model tool arguments. Missing credentials produce dashboard/CLI setup instructions.
When access fails
The pilot blocks browser workers, including dedicated workers and SharedWorkers, as well as service workers and WebSockets. Applications that need browser workers return an unsupported-application error rather than complete coverage. Existing site security policies remain active.
HTTP 200 or clicking Submit does not prove login. Missing/changed selectors, unconfirmed login, expired sessions, MFA, wrong roles, blocked scope, nonportable state and service failures are distinct conditions. Ambiguous timeouts are not diagnosed as bad passwords. Rejected credentials and human challenges pause unattended attempts; at most one automatic form reauthentication is allowed after a previously valid session expires.
No evaluated pages means no score. A session that fails partway through retains valid findings with incomplete coverage; skipped pages are never counted as clean. Revoke credentials at the target website too if you need to invalidate independently copied sessions.
Design references: Playwright authentication, ZAP verification guidance, OWASP secrets management.