<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z0000ABvMzPCQVOkta Classic EngineAuthenticationAnswered2026-01-24T09:00:53.000Z2024-07-15T09:33:50.000Z2024-12-23T10:47:48.000Z

vf1cl (vf1cl) asked a question.

End to end test automation with okta mfa

We are trying to implement automated tests that required users to be authenticated with Okta.

Our security team will not allow creating an account without mfa like this was suggested here:

https://support.okta.com/help/s/question/0D50Z00008G7V0aSAF/mfa-options-and-automating-ui-and-load-tests?language=en_US

https://support.okta.com/help/s/question/0D54z00009a1UfqCAE/disable-okta-mfa-for-automation-and-load-testing?language=en_US

 

Could you please point me to some documentation that explains in basic terms how can I set up such automation ? 


  • MatthewH.10249 (State of Iowa)

    It is too bad that your security team will not allow you to isolate the test accounts in a group so you can avoid MFA for testing as suggested in the posts you mentioned. The only thing I have found that might work but have never implemented myself is the use of a custom TOTP. The first link below talks about setting a custom TOTP in Okta and the second link, while not Okta specific, will give you an idea of the general concept of using a TOTP in test automations.

     

     

    Best of luck and if you get this to work or discover it to be a dead end it would be great if you could share your experience with the rest of the Okta Community by responding to this post or opening a new one.

    Expand Post
  • vf1cl (vf1cl)

    Hi Matthew,

    Thanks for your response. I've managed to make it work using TOTP and Playwright.

    I've described the solution here with the code snippets examples so it may be helpful for others to automate it.

This question is closed.
Loading
End to end test automation with okta mfa