Pular para o conteúdo

TOTP

TOTP is the classic six-digit code from an authenticator app — Google Authenticator, Microsoft Authenticator, Aegis, 1Password, a hardware TOTP token and so on. Codes are computed on the phone and checked on the OkYouIn server; nothing travels anywhere else, so TOTP keeps working when the internet, Telegram or your mail server is down. It is the only provider enabled on a new installation.

Open Settings ▸ System ▸ MFA Settings, card Provider Configuration, and click TOTP (Configure TOTP):

SettingDefaultNotes
Issuer nameOkYouInShown next to the account in the authenticator app. No colons. Put your company name here.
Digits66 (compatible with every app) or 8.
Interval (seconds)3030 is the standard; most apps only support 30 and 60.
AlgorithmSHA1SHA1 is compatible with every app; SHA256 and SHA512 are available.
Allowed drift (intervals)1Codes this many intervals before or after now are accepted, for clock skew. 1 is usual.

Changes apply to new enrollments; existing ones keep the parameters they were issued with. The user’s page shows the parameters of their enrollment under Code parameters.

The user opens My account ▸ Two-factor authentication ▸ Set up ▸ TOTP (or follows a setup link), scans the QR code with the authenticator app, and types one code to confirm.

The user types the current code where the sign-in asks for it:

  • the console and the single sign-on page show a code field;
  • RADIUS devices that can show a prompt ask for it in a second step (an Access-Challenge);
  • OpenVPN can take the code together with the password in its static-challenge prompt;
  • the Windows logon agent asks for it on the logon screen.

A device that cannot show any prompt cannot take a code; for such applications OkYouIn refuses TOTP users with MFA method not supported by the application and the application page warns you. Use a push method there.

Each code is accepted only once, so a code read over someone’s shoulder cannot be replayed. Wrong codes are limited per user (see Brute-force protection) and never lock the account.

TOTP is never subject to the push flood limit, and since the code is typed on the sign-in device, there is no separate approving device whose country could be checked.