Skip to main content

Hi everyone!

I’m developing a process which needs to access to a website using a username, password and two factor authentication code.

I’m trying to use the authenticator google extension but I have some problems to get the code.

Have you ever resolved it? 

Thank you so much in advance,

María

 

Hi @Maria 3438 ,

 

Would you be able to share the screen shot of the problem while getting the code.

 

Thanks!


Hi @Maria 3438 ,

If the website has 2 Factor Authentication enabled check with your IT if it can be disabled for a specific service account which you can use for automation. having said this its not recommend to automate 2FA because it goes against the compliance policy.

Curious to know what are the problems you are facing?


I have to build automation to download a report from Amazon Seller Central and it doesn’t allow to use Email for two factor authentication. We should be able to use either Google authenticator or Mobile to get the OTP. Can anyone help me how to use Google Authenticator in Automation Anywhere?


@sbillapati , you could consider using the Google Authenticator TOTP secret key along with a Python script to generate the required TOTP code for use during login. This is the approach I’m currently using in one of our automations that involves Google MFA. However, if extracting the TOTP secret key is not feasible due to your application or configuration settings, it may be challenging to fully automate the login process without involving a human in the loop.


Thank you ​@Venkata Sai saran.M. In my case, I m trying to download reports from Amazon portal and while logging, it requires 2F authentication and it doesn’t send the OTP to email. It only sends to either mobile or through google authenticator.


@sbillapati Yes, I was referring to Google Authenticator in my previous message. You will need to use the secret key in your Python or JavaScript code to generate the TOTP dynamically. This generated code can then be used during the login process to the Amazon portal.

 

Sample Python Script: 

import pyotp
totp = pyotp.TOTP("YOUR_SECRET_KEY")
print(totp.now())

 

Ref url:

https://pypi.org/project/pyotp/

 

 


@Venkata Sai saran.M  - you are awesome. Thank you for the info. I have to explore on this.