17 May 2019 07:36 AM - last edited on 14 Dec 2021 09:54 AM by MaciejNeumann
We have a requirement where we need to record script for two factor authentication.
Could you please let me know if this is possible?
Regards,
Suraj Gupta
Solved! Go to Solution.
03 Jun 2019 08:15 AM
Not directly since there are limited ways how to pass the value of the second factor to the browser executing the synthetic test. It actually depends on what is your second factor and how can the value be accessible in an automated way.
The only approach I can think of is to provide the value of the second factor using, for example, a REST web service then collect and use the value from the javascript code. But depending on your use case, this might introduce a weak point in terms of security.
Anyway, I would recommend disabling the second-factor authentication for the user used to do synthetic tests.