Android Multifactor Authentication
Download this sample project configured with your Auth0 API Keys.
- Android Studio 2.2
- Android SDK 24
- Emulator - Nexus 5X - Android 6.0
Enable Multifactor Authentication In Your Account
Multifactor authentication can be enabled with the flip of a switch with Auth0. Go to the MFA section of your dashboard and flip the switch on for Google Authenticator under the Choose a Provider section.
You must specify which clients you want to enable MFA for. This can be done by editing the snippet that appears below, replacing the placeholder with your actual client IDs.
If you want to use MFA in all of your clients, the easiest you can do is disabling this conditional in the script:
if (CLIENTS_WITH_MFA.indexOf(context.clientID) !== -1)
For more information on how to configure Lock-Android in your app, take a look at the login tutorial.