Robot
Automating Multi-Factor Authentication (MFA)
Example of using Multi Factor Authentication with One Time Password
With the RPA.MFA
wrapping pyotp library, you can generate one-time passwords to sign in to services and sites that enforce multi-factor authentication.
The common setup flow is as follows:
- Login into the web platform as usual, then go to security settings and register a new authenticator app (as you normally do with Google Authenticator or Authy).
- Proceed throughout the instructions and choose "different auth app" if such an option is available.
- You'll get to a QR code that contains a secret key.
- Store the secret securely in the Robocorp Control Room Vault.
- Scanning the QR code with your mobile app will enable you to finish the registration process quickly.
- Finish registration by entering the 6-digit code obtained with your smartphone or the
Get Time/Counter Based Otp
keyword.
Now you should be able to authenticate with your usual credentials and the immediately requested OTP without any manual intervention, fully automated!
Examples
Microsoft
https://mysignins.microsoft.com/security-info
- Add a sign-in method
- Authenticator app
- QR code and secret
- Code confirmation
GitHub
https://github.com/settings/security
- Configure authenticator app
- App setup
- QR code and secret
https://myaccount.google.com/security
- 2-Step Verification
- Authenticator app
- Change authenticator
- QR code
- QR secret
Technical information
Last updated
February 14, 2023License
Apache License 2.0