Automating IDP Workflows with 2FA using Cypress & Mailosaur
summary
Shows a working Cypress setup that automates a third‑party IDP login with 2FA using the Mailosaur API, capturing CSRF tokens with cy.intercept, switching origins with cy.origin, and caching credentials with cy.session. Demo builds a custom getOTP command that calls Mailosaur getMessage, completes an ADP login in about 35 seconds, and saves roughly 40 minutes across 85 tests by restoring sessions across specs. The flow works reliably in CI with configurable timeouts.
AI-written summary · about
chapters (6)
- 0:00Introduction
- 1:06Key concepts overview
- 3:31User journey automation
- 7:25Implementation details
- 14:52Demo and workflow
- 15:13Q&A session
related talks
18mTesting Passwordless Authentication Flows
10mStrategies for testing Authentication and Authorization Flows
49mRunning system tests with active authn/z
18mShifting Authentication at Scale
51mWeb APIs for delightful two factor auth experiences
20mBeyond Passwords: A Journey to Seamless Authentication for Enterprise Software
27mI see your point, but… (Part 1)
01h 28mHow to 2FA-enable Open Source Applications
