Auth
Automate MFA with Vaults
Store username, password, and a TOTP secret in a Notte Vault so browser sessions can complete MFA without manual input.
Run this template
Clone just this template, configure Notte, and start the run.
Before running
- Have
NOTTE_API_KEYready. Generate an API key.
Need help? Join the Notte Slack.
Credential flow
- Vault setup: opens the demo page, extracts the test credentials and TOTP secret, and saves them to an ephemeral Notte vault.
- Automatic TOTP filling: uses vault placeholders in a form fill action; Notte generates the current TOTP code from the stored secret.
- Retry logic: reloads the page and fills from the vault again if the first TOTP window expires.
- Initializes a Notte browser session.
Secrets and state
- session.page: use Playwright primitives through a Notte browser session.
- scrape: extract structured data from web pages using natural language instructions and Pydantic models.
- Vault: encrypted Notte credential storage attached to a browser session with vault_id.
- mfa_secret: a stored TOTP secret key. The vault turns it into a fresh one-time code when the fill action uses the MFA placeholder.
Where to adapt it
- Vault-backed MFA: Store encrypted TOTP secrets alongside username and password credentials.
- Automated authentication: Complete MFA challenges automatically when session persistence isn't enough.
- Zero-touch MFA: Eliminate user interaction for MFA completion in automated workflows.
- Session recovery: Automatically handle MFA prompts when re-authenticating expired sessions.