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.
Settings
Section titled “Settings”Open Settings ▸ System ▸ MFA Settings, card Provider Configuration, and click TOTP (Configure TOTP):
| Setting | Default | Notes |
|---|---|---|
| Issuer name | OkYouIn | Shown next to the account in the authenticator app. No colons. Put your company name here. |
| Digits | 6 | 6 (compatible with every app) or 8. |
| Interval (seconds) | 30 | 30 is the standard; most apps only support 30 and 60. |
| Algorithm | SHA1 | SHA1 is compatible with every app; SHA256 and SHA512 are available. |
| Allowed drift (intervals) | 1 | Codes 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.
Enrollment
Section titled “Enrollment”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.
Signing in
Section titled “Signing in”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.