I am using selenium for automation testing and web has a OKTA multi-factor authentication, which requires a code to be sent to phone/email. I don’t want to be using 3rd part website to reterive code and looking for possible solution which allows me to get code without having to be sent to a phone/email.
Please could someone help me?
I would love to hear more about this as well.
Create a test identity that has a policy without MFA. Make sure the identity has least privilege for what it needs to do. Beyond the support answer below I would apply a policy to the identity that only allows authentication from the test computer.
This link to a support case hints at the solution: https://support.okta.com/help/s/question/0D50Z00008G7V0a/mfa-options-and-automating-ui-and-load-tests?language=en_US.