I have been tasked with implementing ZAP scanning as part of our test automation suite. As such I have been exploring implementing the authentication part of the scan using some script. While the first part of the authentication seems familiar, the second screen in our web app prompts for an OTP which gets sent to a user's cell phone.
Is there any way to integrate this into the ZAP automation script? I am currently pondering over the idea of having the SMS be sent to a Twilio number and then querying the OTP code using Twilio's API. So, could anyone let me know if it's possible to import external libraries in the ZAP automation script?
I am thinking of writing a Python script for this purpose.