
Closed
Posted
Paid on delivery
# Playwright Expert for Complex Authentication, MFA and Session Persistence I need an experienced Playwright engineer to build a reliable browser-automation application for complex authenticated workflows. The application will be used only with portals and accounts that our company owns or is explicitly authorized to access. The target workflows may include: * Username and password authentication * SMS or email one-time codes * Authenticator-app TOTP * Trusted-device or remembered-device confirmation * Saved browser sessions * Session expiration * Operator-assisted authentication * Unexpected login errors or additional security challenges The priority is reliability, security, and clear failure handling. ## Required Authentication Flow On every run, the application must follow a session-first process: 1. Check whether an active authenticated browser session is available. 2. If available, verify that it is still authenticated and belongs to the correct account. 3. If no active browser is available, attempt to load an encrypted saved Playwright storage state. 4. Verify the restored session using the authenticated URL, visible account elements, and the absence of login or error screens. 5. If the saved session is no longer valid, start the approved reauthentication workflow. 6. If the portal presents CAPTCHA, an access-denied page, account lock, or an unexpected security challenge, stop and request manual intervention. 7. Save a new session only after authentication has been fully verified. The application must reuse an authenticated session only while it remains valid. It must respect the portal’s natural session expiration and security controls. ## MFA and OTP Support The application must support authorized MFA workflows, including: * SMS one-time codes * Email one-time codes * Authenticator-app TOTP * Manual code entry when automatic retrieval is unavailable OTP retrieval must be implemented through configurable hooks or provider integrations. Possible integrations include: * Twilio inbound SMS webhook * Secure email inbox or inbound-email webhook * Encrypted TOTP-secret integration * Manual operator entry Requirements: * Match each code to the correct account and active login challenge. * Reject old or expired codes. * Prevent one code from being consumed by the wrong job. * Never write OTP codes to application logs. * Do not request repeated codes automatically. * Stop after an invalid code or unexpected challenge. Authenticator-app secrets, when used, must be encrypted at rest and must never be included in source code or configuration files. ## Trusted-Device Handling When the portal legitimately presents a “Trust This Device,” “Remember This Device,” or equivalent option, the application should: 1. Detect the option. 2. Select it when enabled in the account configuration. 3. Verify that the option was accepted. 4. Save the resulting authenticated browser state securely. 5. Reuse the saved state on future runs while it remains valid. The application must not manipulate security cookies, browser fingerprints, CAPTCHA systems, or portal protections. ## Manual Authentication Mode When automatic authentication cannot continue, an authorized operator must be able to open the same Playwright browser in visible mode. The operator should be able to: * View the current browser page * Complete an unexpected authentication step * Enter an OTP manually * Confirm a trusted-device prompt * Resume the workflow * Cancel the run * Record an operator note Headed and headless execution must use the same underlying workflow and selectors. ## Error Detection The application must detect and clearly report: * Invalid credentials * Expired session * Invalid OTP * OTP timeout * Account lock * CAPTCHA * HTTP 403 or access-denied response * Unexpected authentication challenge * Selector or page-layout change * Browser crash * Network timeout * Incorrect account or profile * Saved session belonging to the wrong account The application must stop rather than attempt to bypass CAPTCHA, access restrictions, or security blocks. ## Security Requirements Credentials and authentication secrets must not be stored in a normal configuration file. Use: * Environment variables * Docker secrets * A managed secrets service * Replit Secrets * HashiCorp Vault * AWS Secrets Manager * Another approved secure vault Saved session artifacts must be: * Separate for each account * Encrypted at rest * Protected by restricted permissions * Written atomically * Excluded from Git * Excluded from logs * Invalidated when no longer trusted * Protected against simultaneous writes Passwords, OTP codes, cookies, local-storage values, and TOTP secrets must never appear in screenshots or standard logs. ## Technical Requirements Preferred implementation: * Playwright * TypeScript and Node.js Python with Playwright may also be considered when the developer can explain the advantage. The project must include: * Clear account configuration * Separate browser context for every account * Secure session persistence * Structured error handling * Configurable OTP retrieval hook * Manual authentication mode * Audit logs with sensitive information redacted * Reliable selector strategy * No arbitrary fixed delays where a Playwright condition can be used * Screenshot or trace capture for failures, with sensitive fields redacted * Docker support * One-command local startup ## Acceptance Criteria 1. Playwright TypeScript project runnable with one documented command. 2. Credentials are loaded from environment secrets or a vault, not committed configuration files. 3. Each account has isolated session storage and browser context. 4. The application tries a valid saved session before beginning a new login. 5. Expired sessions safely enter the reauthentication workflow. 6. SMS and email OTP retrieval are supported through configurable hooks. 7. Authenticator TOTP is handled securely or through manual operator entry. 8. Old OTP messages cannot be used by a new login attempt. 9. Trusted-device state is saved only after successful verification. 10. CAPTCHA, account lock, access denial, and unexpected challenges stop the workflow. 11. Headed and headless modes use the same business logic. 12. The application avoids brittle fixed waits and uses Playwright conditions. 13. Sensitive information is removed from logs, traces, and screenshots. 14. Automated tests are included using a mock or staging authentication portal. 15. A README explains setup, session reset, credential rotation, troubleshooting, and extension of the authentication flow. ## Demonstration The selected developer must demonstrate the workflow using one of the following: * A mock authentication portal * A staging portal * Our authorized portals after hiring * A sanitized previous project the developer is legally permitted to show Do not access or demonstrate automation against a third-party account without authorization. ## Required Experience Strong experience is required in: * Playwright * TypeScript or Python * Complex authenticated browser workflows * MFA and OTP integration * Browser-session persistence * Secure cookie and local-storage handling * Twilio or email webhooks * Docker * API integration * Error detection and recovery * Secure credentials management Experience only with simple web scraping is not sufficient. ## Screening Questions Please answer these questions in your proposal: 1. Describe a complex Playwright login workflow you previously built. 2. How would you securely store Playwright session state? 3. How would you prevent an old OTP from being submitted during a new login? 4. How would you match an SMS or email code to the correct account? 5. How would you verify that a restored session belongs to the correct account? 6. What should happen when the portal displays CAPTCHA, HTTP 403, or an account-lock message? 7. How would you allow manual authentication without duplicating the automated workflow? 8. How would you prevent two browser processes from using the same account simultaneously? 9. How would you redact passwords and OTP fields from traces and screenshots? 10. Which stack do you recommend and why? Please include relevant examples that you are authorized to share.
Project ID: 40606626
248 proposals
Remote project
Active 12 hours ago
Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
248 freelancers are bidding on average $446 USD for this job

Hi — Elias here from Miami. I see you're looking to automate authentication flows, including MFA and session persistence, using Playwright. This is key for ensuring user engagement and security in your application. The real technical challenge often lies in handling the complexities of session management and the different states users can find themselves in. What usually matters most here is ensuring that your automation can handle various edge cases without compromising performance or user experience. The tricky part is usually managing the interactions with MFA systems, as they can vary significantly between platforms. To tackle this, I would structure the automation framework with clear separation of concerns, ensuring that each component is modular and maintainable. I focus on building a robust environment that can easily adapt to future changes or scaling needs. I've worked on similar authentication flows using Playwright and Selenium, optimizing them for both reliability and maintainability. A few questions to better understand the scope: Q1 – What specific user roles will need to be supported in the authentication flow? Q2 – Are there particular MFA methods you need to integrate with? Q3 – How do you envision handling session persistence across different user sessions? Looking forward to hearing from you.
$500 USD in 3 days
8.4
8.4

Hello, Lyes here: I understand you need a robust Playwright automation that prefers saved sessions, handles MFA, trusted-device flows, and fails loudly on CAPTCHA or access-denied. A key challenge is reliably matching transient OTPs to the correct login challenge while keeping secrets encrypted and never leaking codes to logs or screenshots. I propose a TypeScript Playwright service that uses per-account encrypted storage-state files, atomic writes, and a pluggable OTP-hook interface (webhook, secure inbox, or manual entry). The flow will always validate restored sessions via account-specific selectors and authenticated URLs, pause for operator-led headed mode when unexpected challenges appear, and capture redacted traces/screenshots for failures. Docker and one-command startup will be included. Do you have a preferred OTP delivery/inbox provider to integrate first? Should trusted-device be enabled by default per account or opt-in at runtime? Looking forward to hearing from you.
$600 USD in 3 days
8.3
8.3

Hello, As a leader in the global marketplace, my team and I have a wealth of experience in web development and design, making us an ideal choice for your project. I myself have honed my skills specifically in JavaScript, which is directly relevant to the task at hand. Over the years, we've mastered the art of bringing complex ideas to life with simple and elegant coding techniques - perfect for tackling the myriad of authentication scenarios you've defined. One aspect where we consistently prove our mettle is security. Given that this project involves navigating zones with a varying level of accessibility and susceptibility, it's crucial that you work with someone who prioritizes reliability, security, and clear failure handling - and that's exactly what you'll receive when you choose us. From trusted-device confirmation to MFA support and session persistence, we cover all the bases you've outlined in meticulous detail. Our ability to adapt quickly to changes in layout or selector etc. will be invaluable when navigating any unexpected authentication challenges - no matter how they manifest themselves. We understand the significance of 100% accuracy when dealing with OTP codes; our thoroughness ensures that every code goes where it should and never gets written into application logs. So let's move towards creating a browser-automation application that not only meets but exceeds your expectations! Thanks!
$350 USD in 3 days
8.0
8.0

Playwright with TypeScript and Node.js is the right fit for this session-first authentication system. I have built complex browser workflows covering credentials, OTP challenges, saved browser state, account verification, session expiry, and operator-assisted recovery. I would create an isolated browser context and encrypted, atomic storage-state file per account, protected with a vault or environment secret and a per-account lock to prevent concurrent runs. The workflow will validate an existing browser, then restore state, verify the authenticated URL and account identity, and only then reauthenticate. SMS/email retrieval will use configurable Twilio or inbox hooks with challenge IDs, timestamps, account matching, single-consumption handling, expiry checks, and redacted logging. TOTP secrets will remain encrypted, with manual entry available. CAPTCHA, 403, account lock, invalid OTP, unexpected challenges, layout changes, and crashes will stop safely for operator intervention. Headed and headless modes will share the same page objects and business logic. I’ll add trusted-device detection, failure screenshots/traces with sensitive fields masked, Docker startup, a mock/staging authentication test suite, audit events, session reset/rotation documentation, and README troubleshooting. Muhammad Saad
$300 USD in 4 days
7.6
7.6

Good to see this project, I will deliver a Playwright TypeScript application with session persistence, MFA hook integration (Twilio SMS, email webhook, encrypted TOTP), manual operator mode, and per account isolated browser contexts, all running with one Docker command. On a recent build handling TOTP and SMS codes across multiple portal accounts, I used a correlation key (account ID plus challenge timestamp) to prevent stale or misrouted OTP consumption. I will apply the same pattern here. Questions: 1) For OTP retrieval, do you already have a Twilio number or inbound email webhook set up, or should I provision those as part of this project? 2) How many portal accounts will run concurrently at peak? Share your target portal URL and I will set up a mock auth flow matching its login structure by tomorrow. Send me a message and we can go over the details. Best regards, Kamran
$278 USD in 10 days
7.9
7.9

Hi there, I’ll build a robust Playwright-based auth flow automation that handles complex login sequences, multi-factor authentication (MFA) triggers (like TOTP or push notifications), and persistent session management across browser restarts. Instead of relying on flaky UI interactions for MFA, I’ll integrate secure, configurable token injection — supporting both API-driven MFA resolution and manual fallback with timed prompts. Session persistence will use Playwright’s built-in storage state APIs, plus optional encrypted local storage for long-lived contexts. The solution will be containerized with Docker, include modular JavaScript/Node.js scripts (with clean separation of config, auth logic, and test utilities), and support extensible hooks for custom auth providers or enterprise SSO flows. I’ll also add logging, retry logic for transient failures, and lightweight reporting to help debug auth issues in CI or local runs. All code will be well-documented, linted, and structured for maintainability — no Selenium dependencies unless explicitly needed for legacy comparison. Python support can be added via Playwright’s Python bindings if required later. Best Regards, Khorshed Alam, RS Software
$460 USD in 7 days
8.6
8.6

Hi, I've built and maintained production-grade browser automation systems with Playwright for over five years, including complex authenticated workflows with MFA and session persistence, so this is a direct fit. I'll implement a TypeScript/Node.js Playwright project with Docker support that first checks for a valid encrypted session before attempting login, verifies its ownership and freshness, and safely falls back to reauthentication when needed while strictly separating sessions by account. For OTP handling, I'll use configurable provider hooks (Twilio, email, or TOTP) with encrypted secrets and atomic session persistence, ensuring codes can't be reused across runs or logged accidentally. Manual intervention mode will reuse the same selectors and business logic via headed execution, and all failures will trigger atomic trace capture with sensitive fields redacted. I'll include automated tests against a mock portal and a README covering setup and maintenance. I can start immediately.
$400 USD in 3 days
7.2
7.2

As an experienced Playwright engineer, I possess the skills and expertise necessary to fulfill the complex needs of your Playwright Authentication Flow Automation project. With a rich background in web development, including solid experience with API integration and mastery of JavaScript and Python, I am fully equipped to build a reliable browser-automation application tailored specifically to your requirements. Reliability, security, and clear failure handling are my top priorities. Throughout my decade-long career as a computer engineer in the IT industry, I have consistently prioritized these aspects in my work. I understand the significance of robust session-first processes, such as those you've outlined for this project, and have proficiency in saving and restoring authenticated browser sessions while ensuring their validity and account matching with careful selector management. Furthermore, my problem-solving abilities and commitment will prove invaluable especially when tackling unexpected or unusual login errors or additional security challenges that may arise during the authentication process. In addition, my membership in the Freelancer Preferred Program demonstrates not just my technical prowess but also my dedication to providing a quality service to clients like yourself.
$500 USD in 7 days
7.3
7.3

Hi, I can help build a secure and reliable Playwright automation system for complex authenticated workflows with MFA, session persistence, and robust error handling. I have experience with Playwright, TypeScript/Node.js, browser automation, authentication flows, API integrations, Docker, and secure credential management. I can implement session-first authentication, encrypted storage states, OTP integrations, manual operator-assisted login, account isolation, failure detection, and audit logging with sensitive data redaction. My approach focuses on reliability and security: no bypassing protections, no brittle delays, proper Playwright waits, isolated browser contexts, and clear recovery workflows for expired sessions, CAPTCHA, access blocks, and unexpected challenges. I can deliver a well-structured project with documentation, tests using a mock/staging environment, Docker setup, and maintainable architecture. I would be happy to discuss your authorized portal workflows and provide relevant examples. Best regards
$250 USD in 3 days
7.3
7.3

Hi, The session-first flow you describe is the right call. On a past project I built inbound SMS handling with Twilio and REST APIs, so matching an OTP to the correct account and active challenge is familiar ground. The trick is a short-lived challenge token per login attempt tied to the account, so an old code arriving late is rejected and never consumed by another job. On session integrity: I verify a restored state by hitting an authenticated URL, checking a known account element, and confirming no login or error screen before trusting it. Storage state encrypted at rest, per account, excluded from Git and logs, atomic writes with a lock to stop two processes sharing one account. Headed and headless share the same selectors and business logic, so manual mode just opens the same context visible. On CAPTCHA, 403, or account lock, the run stops and requests manual intervention rather than trying to bypass anything. Which stack do you lean toward, TypeScript or Python? I'd recommend TypeScript with Playwright for tighter typing on the session and challenge models. First milestone can be the session verify and reauth core against a mock portal, so you only release on working code. Adil
$316.25 USD in 7 days
7.0
7.0

I can deliver a robust Playwright automation application tailored for complex authentication workflows, focusing on reliability and security. This solution will seamlessly handle MFA, session persistence, and error management. I noticed the emphasis on secure session management and manual intervention for unexpected challenges, which aligns with my expertise in creating adaptive workflows. We have 20+ 5-star reviews on similar projects! My skills in Playwright, TypeScript, and secure credential management ensure the application will meet your security and functionality needs. I look forward to discussing how I can bring this project to life. Regards, JP
$400 USD in 7 days
6.8
6.8

YES, I will build your secure Playwright automation system with session-first authentication, MFA/OTP workflows, trusted-device handling, encrypted session persistence, manual intervention mode, Docker support, and robust error handling. I will ensure CAPTCHA, access denial, and unexpected security challenges stop safely without bypassing protections. Please ping me to get outstanding results. Thanks!!
$700 USD in 7 days
7.1
7.1

Hello, I have carefully reviewed your requirements and understand that you need a secure, production-grade Playwright authentication framework capable of handling complex login workflows, MFA, session persistence, OTP integrations, manual authentication, and comprehensive error handling while respecting all portal security controls. I have 13+ years of experience in Playwright, TypeScript, Node.js, browser automation, API integrations, Docker, and secure authentication workflows. I recommend using Playwright with TypeScript, Node.js, Docker, and a secure secrets manager (AWS Secrets Manager or HashiCorp Vault) to build a scalable, maintainable, and secure solution. The application will support encrypted per-account session storage, isolated browser contexts, configurable OTP hooks (SMS, Email, TOTP), trusted-device handling, structured logging with sensitive data redaction, robust error detection, automated tests, and complete documentation for deployment and maintenance. I WILL PROVIDE 2 YEARS OF FREE ONGOING SUPPORT, COMPLETE SOURCE CODE, AND ASSIST YOU FROM DEVELOPMENT TO SUCCESSFUL DEPLOYMENT. I am available to start immediately and look forward to discussing your authentication architecture and demonstration requirements. I eagerly await your positive response. Thanks, Christina
$429 USD in 10 days
7.2
7.2

Hello, My recent Playwright work covered multi-step login flows with session restore, MFA prompts, trusted-device checks, and clear stop states for CAPTCHA, 403, lockouts, or wrong accounts. I would use TypeScript and Node.js, not Python, because Playwright support and hooks are strongest there. The Software Architecture would isolate each account in its own context, encrypt storage state, lock concurrent runs, and keep secrets in vaults or environment secrets. OTP hooks would match codes by account, challenge id, timestamp, and expiry, then reject reused or stale messages. Headed and headless modes would share selectors, while Docker gives one-command startup with redacted logs, traces, and failure screenshots. Best regards, Teo
$500 USD in 5 days
6.7
6.7

As your provider of choice, I, Sufyan, and my team at Fourge bring an expansive skill set and years of experience to the table. Our excellent competency in JavaScript and Python development along with extensive knowledge in software architecture makes us well-equipped for creating your desired automated Playwright application. With experience across numerous integrations including Twilio inbound SMS webhook and encrypted TOTP-secrets integration, we offer comprehensive solutions that ensure OTP code matching with correct accounts, account security enhancement through encryption at rest of password secrets along with confidential customer data. Headed or headless execution won't hinder us from implementing the exact manual operator workflows you require, increasing ease-of-use for day-to-day operability. Finally, our highly perceptive diagnostics tick all the major boxes required to maintain a reliable application. Invalid credentials to CAPTCHAs and incorrect profiles to session breaches; our system will detect them all and provide detailed reports. Fourge offers adaptable end-to-end digital solution expertise; let's implement the world-class application you envision. Let's discuss specifics and put into action technology tailored precisely to achieve your business goals.
$250 USD in 7 days
6.4
6.4

I've built session-first Playwright automation before: check for an active browser session, fall back to an encrypted saved storage state, verify it against account-specific elements, and only re-authenticate when it's genuinely invalid. I'd store session state per-account with restricted file permissions, atomic writes, and encryption at rest, keeping credentials and TOTP secrets in environment/vault secrets only - never in config or logs. OTP matching would tie each code to the specific account and active challenge with a short expiry window so stale codes can't be replayed, and any CAPTCHA, lockout, or unexpected challenge halts the run for the manual/headed mode rather than attempting a bypass. I'd build this in Playwright with TypeScript, Docker-packaged with a single startup command, structured redacted logging, and automated tests against a mock or staging portal, plus a README covering setup, credential rotation, and extending the flow to new portals.
$450 USD in 10 days
7.3
7.3

Hi there, I understand that you require a robust Playwright automation application for complex authentication workflows, including multifactor authentication and session persistence. I have extensive experience working with Playwright and have successfully built similar workflows that ensure reliable and secure management of browser sessions. My approach will incorporate session verification, secure storage of credentials using environment variables or secret management services, and configurable hooks for OTP retrieval. I also have strategies in mind for handling unexpected challenges like CAPTCHA and account locks while maintaining a seamless user experience. I can deliver a reliable solution that meets your specified requirements securely. Your satisfaction is my priority and I guarantee that I will deliver you a high-quality result. Regards, Ali
$250 USD in 14 days
6.3
6.3

Hi, I’ve built a similar Playwright automation system for a financial portal where sessions, MFA (SMS/TOTP), and trusted devices were handled with strict security and session persistence. The key was isolating browser contexts per account and enforcing atomic session saves to prevent conflicts. I’d approach this using Playwright in TypeScript with isolated browser contexts per account, avoiding fixed waits by relying on Playwright’s native conditions. The biggest improvement will come from atomic session persistence and secure OTP handling to prevent race conditions or reused codes. Reliability is ensured by verifying restored sessions against account-specific UI elements before reuse, with atomic writes and strict permission checks for session files. The goal is a system that minimizes manual intervention, respects portal security limits, and makes failures obvious without bypassing protections. If this aligns with your needs, I can start right now. Thanks, Denis
$400 USD in 3 days
6.3
6.3

I can confidently say that my team at Web Crest has the matchless capabilities to tackle your project's complex requirements. With our expertise crafting secure and high-performance applications, we are no stranger to the challenges of automation and session management like those you've described. As seasoned Playwright engineers, we have adeptly navigated scenarios ranging from MFA workflows to OTP support. We can even develop hooks and integrations for efficient OTP retrieval, safeguarding each code from being wrongly consumed, while never logging them, satisfying your stringent security needs. Moreover, we understand the dynamics of a business operation that may require manual intervention. Hence, our solution allows authorized operators to seamlessly step in when necessary for tasks like OTP entry or unexpected authentications while upholding the same underlying logic. We prioritize clear error detection and reporting mechanisms, making sure any issues such as CAPTCHA, incorrect credentials, or network timeouts are detected promptly, enabling swift remediation. Our past projects have provided us with unmatched experiences in Web Crest that perfectly align with your project goal. We are well-versed in languages like Python and Node.js which are critical to implement Playwright efficiently.
$300 USD in 2 days
6.6
6.6

Hi there, I understand you're looking for a secure, production-ready Playwright solution for complex authenticated workflows with MFA, session persistence, trusted-device support, and robust error handling. I'm confident I can build a reliable application that prioritizes security, maintainability, and authorized access without bypassing portal protections. My approach is to develop the solution using Playwright with TypeScript and Node.js, implementing encrypted per-account session storage, secure secret management, configurable OTP providers (SMS, email, TOTP), isolated browser contexts, structured error handling, Docker support, automated testing, and redacted audit logs. The application will validate restored sessions, securely handle reauthentication, support manual operator intervention when required, and use the same workflow for both headed and headless execution. Deliverables include the complete Playwright project, Docker setup, secure session management, OTP integration hooks, documentation, automated tests, and deployment support. Could you clarify which authorized portal(s) will be automated first, and which MFA method is primarily used (SMS, email, authenticator app, or a combination)? I'm ready to start immediately. Warm Regards, Aneesa.
$250 USD in 2 days
6.4
6.4

Quebec, Canada
Payment method verified
Member since Feb 9, 2012
$30-250 USD
$2-3 USD / hour
₹100-400 INR / hour
$2-3 USD / hour
$2-3 USD / hour
£20-250 GBP
$12-30 SGD
₹750-1250 INR / hour
$10-30 USD
€20000-50000 EUR
$25-50 USD / hour
₹100-400 INR / hour
$30-250 USD
₹600-1500 INR
₹600-1500 INR
₹100-400 INR / hour
₹1500-12500 INR
₹12500-37500 INR
₹600-1500 INR
$250-750 USD
$30-250 USD
₹600-1500 INR
₹1500-12500 INR
₹80000-100000 INR
$10-30 USD