Sub topic 3
Choosing verification methods
This chapter assumes you can navigate Setup, manage users, and assign permission sets. It also assumes you know what MFA is and why Salesforce requires it, which the previous chapter covered. Here you will compare the verification methods Salesforce supports, learn how each one works internally, and decide which to offer your users.
What a verification method is
In MFA, the password is the first factor, "something you know". A verification method supplies the second factor. It proves that the person signing in has "something you have" (a phone or a hardware key) or "something you are" (a fingerprint or face scan).
Salesforce accepts these verification methods for MFA:
- Salesforce Authenticator
- Third-party TOTP authenticator apps
- Security keys (WebAuthn or U2F)
- Built-in authenticators (Touch ID, Face ID, Windows Hello)
Salesforce also supports temporary verification codes, but only as a recovery tool. They are not a method users register for daily use. The "Helping users who lose a verification method" chapter covers them.
Email and SMS text message codes are not accepted as MFA verification methods for meeting the Salesforce MFA requirement. SMS and email can be intercepted or redirected (for example by SIM swapping), so they are weaker than the methods above.
Salesforce Authenticator
Salesforce Authenticator is a free mobile app for iOS and Android made by Salesforce. When a user signs in, Salesforce sends a push notification to the phone. The notification shows the account, the app being used, the device, and the approximate location. The user taps Approve or Deny.
Strengths:
- It is the quickest approval flow for users, because there is no code to type.
- The details in the notification help users spot a login they did not start.
- It can also provide location-based automation. A user can tell the app to approve requests automatically from a trusted location, such as the office.
- It can approve other sensitive actions (for example, reporting or connecting to a third-party account), not only logins.
Limits:
- It needs a smartphone and the app installed.
- Push approval is open to "MFA fatigue". An attacker who has the password sends repeated prompts, hoping the user taps Approve to make them stop. User training and clear instructions matter here.
- Automatic approval by location trades some security for convenience. Decide whether to allow it.
Third-party TOTP authenticator apps
TOTP stands for time-based one-time password. An app such as Google Authenticator, Microsoft Authenticator, or Authy generates a six-digit code that changes about every 30 seconds. The user types the current code after entering the password.
Internally, the process has three steps:
- During registration, Salesforce shows a QR code that contains a shared secret. The user's app scans it and stores the secret.
- Each 30 seconds, the app combines the secret with the current time and computes a short code.
- At login, Salesforce does the same computation with its copy of the secret and compares the results.
Because both sides use the same secret and the same clock, no network connection is needed on the phone. This is a useful property for users who travel or work in places with poor signal.
Strengths:
- Users may already have an authenticator app installed.
- It works offline.
- It is a standard (RFC 6238), so many apps are compatible.
Limits:
- The user must type the code, which is slower and exposes the code to phishing. A fake login page can capture the code and replay it within its 30-second window.
- If the phone clock drifts far enough, codes fail. Resyncing the phone's time fixes this.
- A user can connect only one TOTP app at a time to a Salesforce account.
Security keys
A security key is a physical device that connects by USB, NFC, or Bluetooth. Examples are YubiKey and Google Titan. Salesforce supports keys that follow the WebAuthn or U2F standards. During login, the user inserts or taps the key. Some keys also require a touch or a fingerprint.
Security keys are the strongest option here because they resist phishing. The key signs a challenge that includes the website's origin. If a user lands on a look-alike site, the origin does not match, and the key will not produce a valid response. There is no code to steal and replay.
Limits:
- Hardware costs money, and it must be distributed.
- Keys can be lost, so users should register a second one or have another method as a backup.
- Some mobile and browser combinations support keys poorly. Test with the devices your users actually use.
Built-in authenticators
Built-in authenticators use the biometric or PIN feature already in a user's device: Touch ID on a Mac, Face ID on an iPhone, or Windows Hello on a Windows PC. They also use WebAuthn. The private key stays in the device's secure hardware and unlocks only with the user's fingerprint, face, or device PIN.
Strengths:
- There is no extra hardware or app.
- They resist phishing in the same way security keys do.
- They are quick for users, who unlock with a fingerprint or glance.
Limits:
- The credential is tied to one device. A new laptop means registering again.
- They suit managed, personal-use devices better than shared computers.
Comparing the methods
| Method | User effort | Phishing resistance | Needs | Main risk |
|---|---|---|---|---|
| Salesforce Authenticator | Tap to approve | Medium | Smartphone and app | Approval fatigue |
| TOTP app | Type a code | Low to medium | Any authenticator app | Code phishing, clock drift |
| Security key | Insert or tap key | High | Hardware key | Loss, cost |
| Built-in authenticator | Fingerprint, face, or PIN | High | Compatible device | Tied to one device |
How to decide
No single method is right for every user. Weigh these factors:
- Risk of the user's access. Administrators and users who can export large amounts of data justify stronger methods, such as security keys. Salesforce lets you require a specific method for a group through a permission set or policy, so you can set a higher bar for them.
- Device availability. If users do not have company phones, do not make a phone app the only option. Built-in authenticators or keys may fit better.
- Support cost. Fewer supported methods means fewer help desk scenarios. Offer a small set, such as Salesforce Authenticator plus one phishing-resistant option.
- Resilience. Every user needs a recovery path. Encourage users to register more than one method.
- Phishing exposure. If your org has seen phishing attempts, prefer WebAuthn-based methods over codes.
Common mistakes
- Allowing only one method. A lost phone then locks out the user, and every lockout becomes a support ticket.
- Ignoring shared workstations. A built-in authenticator on a shared PC ties the credential to the machine, not the person.
- Skipping training on approval prompts. Tell users to deny any prompt they did not trigger and to report it.
- Assuming SMS is available. Plan your rollout communications around the methods that are actually supported.
- Testing only in one browser. WebAuthn behavior differs across browsers and operating systems, so test on each combination your users have.
Checking what users have registered
After you enable methods, you will want to see who has registered. The TwoFactorInfo object records users who have a verification method. This query finds active users with none, so you know who still needs to register:
SELECT Id, Name, Username
FROM User
WHERE IsActive = true
AND Id NOT IN (SELECT UserId FROM TwoFactorInfo)Run it in the Developer Console Query Editor or Workbench. The result is your list of follow-ups. The next chapters cover how users register and how to enable MFA for them.
Exercise
Your company has 40 field staff who share rugged tablets and have no company phones, and 5 administrators who can export all customer data. Which verification methods would you offer each group, and why?
Show answer
For the administrators, require a phishing-resistant method: security keys (with a second key registered as a backup) or built-in authenticators on managed laptops, because their access carries the highest risk. For the field staff, a phone-based app is not an option for everyone, so offer security keys that can be assigned to each person or a TOTP app if some have personal phones. Avoid built-in authenticators on the shared tablets, since the credential would belong to the device and not the person. Give both groups more than one registered method so a lost key or device does not lock them out.
Exercise
Why is a TOTP code less resistant to phishing than a security key?
Show answer
A TOTP code is just six digits that the user types. A fake login page can capture it and submit it to the real site within its roughly 30-second validity window. A security key signs a challenge that includes the site's origin, so on a look-alike site the response is invalid and there is nothing for an attacker to replay.