MFA and passkeys

How multi-factor authentication and passkeys work for users of a onefold application, and what your application can and cannot control.

Multi-factor authentication and passkeys belong to the user's onefold account. A user sets them up once and they apply at every application. There is nothing to integrate.

What your application controls

You canYou cannot
Offer or hide passkey sign-in on your hosted sign-in pageRequire a passkey
Require a second factor, through your organization's security policy or your application's own tightening of itTurn a user's second factor off
Find out whether a user has a second factor or a passkey
Find out which method a user signed in with

The tokens your application receives are the same whether or not a second factor was used. No claim describes it.

If your product needs a stronger check before a sensitive action, build that check in your own application.

Multi-factor authentication

When a user with MFA signs in, the hosted sign-in page asks for their second factor before sending them on to consent and your callback.

A user can set up:

FactorWhat it is
Authenticator appTime-based one-time codes (TOTP)
Security keyA hardware key or other device
Backup codesSingle-use codes for when the other factors are unavailable

Setting up an authenticator app or a security key turns MFA on for the account.

Requiring a second factor

When your organization's security policy requires two-step verification, a user who signs in to your application without a second factor in their current session is asked for one on the hosted sign-in page before consent, on the session they already have. A user who has not set one up is told so and sent to add one on their onefold security page, and returns to your application afterwards. Your application sees none of this: the authorization completes as usual once the check passes, and the tokens still carry no claim about which factor was used.

Losing a second factor

A backup code or another enrolled factor replaces one that is lost. An emailed link or code never does: it proves the address, not the second factor. A user who has lost every factor and every backup code contacts the operator of the platform. Staff reset the account's second factors, which removes the authenticator app, the backup codes and the security keys, signs the account out everywhere, and tells the holder by email. The user then signs in and sets up new ones. A passkey used to sign in is left alone. Your application cannot do this, and does not learn that it happened.

Passkeys

A passkey lets a user sign in with their device, using a fingerprint, a face or a device PIN, in place of a password. Users create passkeys on their onefold account.

Passkey sign-in is on by default for every application, on every plan. Turn it off under Ways in on the application's Sign-in tab. That changes which options your hosted sign-in page shows and nothing else.

A passkey is bound to the hostname it was created on. If your application uses a custom domain, a passkey created on onefold.eitozx.com does not work there.

A passkey is not a second factor

A passkey replaces the password. A user who has MFA turned on and signs in with a passkey still completes the second-factor step.

On this page