Programmatically authentication do Duo protected application


Hello All,

I have an application that is protected by Duo 2FA. I can access the application via the interactive Duo web pages, but I’d like to access the app’s API in code. How do I perform the Duo auth in code? Note that I’m not interested in accessing Duo’s API, just the app’s API. I’d like to use Python and for security i used cyberark, but am open to anything.