TOTP authentication with data source

TOTP authentication with data source

avatar

Hi,

Is it possible to automate the 2FA process of a data source? I've connected a PowerShell REST API with the PowerShell module and it works,
but before I can run the API listener, I need to run an other script where I connect to my data source through 2FA.
Is there a way to save my 2FA code in a variable and assign it tot the interactive prompt?

Kind regards,
Victor

All Comments (1)

avatar

Hi Victor,

What data source are you connecting to?
If you are connecting to a DVLS or Hub Business data source, the best way to avoid the 2FA would be to use an app id/password.
I'm afraid on other data source type there is no way to bypass the 2FA security, unfortunately.

Regards

Jonathan Lafontaine