Sub topic 6
Registering multi-factor authentication
This chapter assumes you have signed up for a Developer Edition org, verified your email, and set a password. It covers what Salesforce asks for next: registering a second way to prove who you are.
Why Salesforce requires it
Multi-factor authentication (MFA) asks for two or more proofs of identity at login. The first is something you know, your password. The second is something you have, such as a phone running an authenticator app or a security key. Salesforce requires MFA for all direct logins to the user interface, and that includes Developer Edition orgs. A stolen password alone cannot open the org.
You register the method once. After that, Salesforce prompts for it when you log in from a browser or device it does not recognize, and whenever the session policy demands it.
Choosing a verification method
Salesforce offers several methods. The common ones for a developer are in the table.
| Method | What you need | Notes |
|---|---|---|
| Salesforce Authenticator | Salesforce Authenticator app on a phone | Approves logins with a tap. Can also supply a code. |
| Third-party authenticator | Google Authenticator, Microsoft Authenticator, Authy, or similar | Generates a time-based one-time password (TOTP), a six-digit code that changes every 30 seconds. |
| Security key | A WebAuthn or U2F key such as a YubiKey, or a built-in biometric | Strongest option. Costs money if you do not already own a key. |
| Built-in authenticator | Touch ID, Face ID, or Windows Hello | Uses the device you are already on. |
SMS text codes and email codes are not accepted as an MFA method. Pick an authenticator app unless you already own a security key.
Registering an authenticator app
The steps below use a third-party TOTP app, which works the same way in most apps.
- Log in with your username and password. If MFA is not yet registered, Salesforce shows a Connect Authenticator App or Register Verification Method page.
- Install the authenticator app on your phone if you have not already.
- In the app, choose to add an account and scan the QR code on the screen. If you cannot scan it, choose the option to enter a key manually and type the text key Salesforce shows.
- The app now lists your org account and shows a six-digit code.
- Type the current code into the Verification Code box and click Connect.
If the code is rejected, wait for the next code and try again. Do not reuse an old one.
Adding a backup method
A single method is a single point of failure. If you lose the phone, you lose access to the org, and a free Developer Edition org has no support contract to recover it. Do these things once you are logged in:
- Register a second method, such as a security key or a second authenticator app.
- Generate backup verification codes from your personal settings and store them in a password manager.
- Keep a record of which device holds the authenticator.
You can review and change your methods under your user's advanced details, in the section for registered verification methods. Removing a method there is also how you fix a method tied to a lost device, provided you can still log in.
Common problems
- The code is always wrong. Time-based codes depend on the phone clock. Turn on automatic date and time in the phone settings, then try a fresh code.
- The QR code will not scan. Use the manual key option instead. Enter it exactly, with no spaces added.
- You are asked for MFA on every login. Salesforce may not be remembering the browser. Check that you are not using a private window and that cookies are allowed for your My Domain URL.
- You lost your only method. Backup codes are the quickest fix. Without them, Salesforce Support generally cannot restore access to a free Developer Edition org, and you may need to sign up again with a new username.
Exercise
You registered a TOTP authenticator app, and every code you enter is rejected. The QR code scanned without errors. What is the most likely cause, and what do you do?
Show answer
The phone clock is probably out of sync, and TOTP codes depend on accurate time. Turn on automatic date and time in the phone settings, wait for a fresh code, and enter it before it expires.
Exercise
Why should you register a second verification method and generate backup codes soon after your first login?
Show answer
A Developer Edition org has no paid support contract to recover access. If the only method is lost along with the phone, you may be locked out of the org permanently. A second method or backup codes lets you log in and replace the lost method.