Skip to main content

Two-Factor Authentication (2FA)

Two-factor authentication (2FA) adds a second kind of verification during sign-in in addition to a password. Multi-factor authentication (MFA) is the broader term for authentication using two or more kinds of evidence. It helps prevent someone who obtains a password from using that password alone to sign in.

In most environments, 2FA provides the greatest benefit for interactive user logins, particularly for Site Administrators and external users. Automation and integrations typically rely on API keys or SSH/SFTP keys instead of 2FA.

Authentication Factors

An authentication factor is a kind of evidence used to establish identity. The usual categories are something you know, such as a password; something you have, such as an enrolled phone or security key; and something you are, such as a fingerprint checked by a device. MFA combines evidence from different categories. Two passwords or a password and a security question are both knowledge checks, so adding the second does not create another factor category.

Files.com supports hardware security keys, authenticator codes, SMS, and email verification. These methods differ in how independently they establish control of the second factor. For example, email verification offers less separation when the same mailbox can also reset the password.

An identity provider can offer other methods, including a push notification that asks a person to approve a sign-in on an enrolled device, sometimes by matching a displayed number. Push approval differs from a time-based authenticator code that the person types into a sign-in form. Configure provider methods in the IdP and coordinate its MFA policy with Files.com 2FA.

What 2FA Protects Against

A password can become known to someone else through reuse across services, a deceptive sign-in page, software that records typing, or a disclosed password vault. Requiring a second authentication factor means that knowing the password alone is insufficient to sign in.

What 2FA Does Not Solve

2FA verifies identity in authentication flows that support a second factor. Signing in with 2FA does not cause every later action to repeat the check. Selected account and credential changes use re-authentication for an additional confirmation; the requirement depends on the operation and how the request is authenticated.

2FA does not protect against:

  • Unauthorized access to a user's device, for example through malware on their laptop.
  • A leaked API key, SSH/SFTP key, or other non-interactive credential.
  • Shared accounts or shared credentials, which reduce accountability and complicate auditing.
  • Someone using an already authenticated session to perform actions that do not require additional confirmation.

Requirements and Enrollment

A requirement determines whether an account must use 2FA; an enrolled method supplies the verification. On Power or Enterprise plans, Site Administrators can require 2FA for all users or only Site Administrators, with exceptions for unattended accounts. They also decide which methods users may enroll. Disabling a method requires affected users to enroll a supported replacement before normal access resumes.

For people signing in through SSO, coordinate the Files.com requirement with your identity provider so the intended policy applies without an unnecessary duplicate challenge. Removing a requirement and resetting enrolled methods have different effects.

Human Users and Machine Accounts

Use 2FA for people who sign in interactively. A user can enroll more than one supported method, so another enrolled method can remain available when a device is lost. Administrators decide which methods are allowed and which accounts must use them through the 2FA requirements.

Scripts, integrations, and scheduled transfers cannot respond to interactive prompts. Give them dedicated machine accounts with only the folders and protocols their work requires, and use API keys or SSH/SFTP keys.

Apply the Shared/Bot user setting for accounts used programmatically. Keep these credentials separate from the people who sign in interactively, and never use an automation account as a way for a person to avoid 2FA.

People using FTP, SFTP, or WebDAV need to choose an authentication arrangement their client supports. 2FA and File Transfer Clients explains the Files.com apps, protocol codes, SSH hardware keys, and protocol-specific bypass. A key's own hardware confirmation and Files.com-managed 2FA are separate controls.

A user who loses a device may need an administrator to reset enrolled methods. Resetting those methods does not remove the account's 2FA requirement; the user enrolls again if the requirement still applies.