MFA enrollment

Tools → MFA enrollment is for enrolling the second factor: an authenticator app on the phone that shows a 6-digit code (TOTP) and, when single sign-on is…

Tools → MFA enrollment is for enrolling the second factor: an authenticator app on the phone that shows a 6-digit code (TOTP) and, when single sign-on is present, passkeys too. The second factor is asked when you sign in to the console or the VPN from outside the trusted networks.

Who can enroll

Every person account (not a service, not a system object such as krbtgt) can enroll their second factor as soon as something on the appliance asks for it. It is enough that one of these facts is true:

  • the MFA server is installed;
  • the interface is open to the internet («Allow access to the UI from the internet»);
  • the VPN for people is installed;
  • single sign-on (SSO) is active.

There is no per-user switch: even someone who does not have the VPN active must be able to enrol the code, because access from outside asks it of everyone. If none of these conditions holds, or the MFA server is not running, the page says «Multi-factor authentication is not enabled: it comes with the VPN (Settings → VPN Roadwarrior) or with single sign-on.» A non-person account reads «Multi-factor authentication is not required for your account.»

If you are a user

The page shows your token, if you have one, and, with single sign-on, your passkeys. Each user has at most one token.

Enrolling the token.

  1. Press «Enroll token».
  2. A QR code appears: «Scan the QR with your authenticator app» (Google Authenticator, Aegis or similar). The QR is shown only once.
  3. Write in the «Confirm the code» field the 6-digit code the app shows now and press «Verify and activate».

Until you confirm the code, the token is «pending verification» and does not count. If you close the page before scanning the QR, the token stays pending and the QR can no longer be seen: revoke it and enrol it again.

The token status shows «active», «inactive», «pending verification» or «locked», the «Last use» (or «never used») and the «Failed attempts». A «locked» token (too many wrong codes) is unlocked with «Unlock».

Replacing or revoking the token. «Revoke token» deletes the token. To protect the account, from a user session an active token is revoked only by writing the «Current code» it is showing: that way someone who knew only your password cannot replace your token with one of their own. To enrol a new one you must first revoke the one in use: «You already have an active token: to replace it, revoke it first, with its code.» If you have lost the phone you do not have the code: ask the administrator, who can revoke it without.

Passkeys (only with single sign-on)

With single sign-on active the «Passkeys» box appears: «With a passkey you sign in without a password and without an OTP code, with the device’s fingerprint, face or PIN.»

  • «Add passkey» opens the enrolment on the single sign-on page and brings you back here with «Passkey registered.»
  • Each passkey has a name; you can change it with «Rename» (the field is «Passkey name») and delete it with «Delete passkey» (it can no longer be used to sign in).
  • You can have several passkeys, one per device.

If you are an administrator

The administrator sees a list of all the people (with search): by selecting one they manage their token and passkeys with the same buttons, and in addition:

  • they can revoke an active token without the code (lost phone);
  • they see the number of «Open single sign-on sessions» of the user and can close them with «End the sessions» (it also closes those open in Atlas);
  • they can delete a user’s passkeys: they become unusable at once.

An administrator adds their own passkeys by selecting themselves in the list: the title becomes «MFA enrollment / <name>» and the «Passkeys» panel has «Add passkey», as for anybody. Single sign-on sessions are ended from here only for other users.

If the list does not load with the message «The domain controller did not answer…», it is not an empty domain: Active Directory is not answering, check its status.

Example: enrolling your own token

Situation. Helen Gale (new.hire) has just arrived and must be able to sign in to the VPN with the second factor.

What you need. The phone with an authenticator app.

Steps.

  1. Sign in to the console and choose Tools → MFA enrollment.
  2. Press «Enroll token».
  3. Scan the QR with the app.
  4. Write the code shown by the app in «Confirm the code» and press «Verify and activate».

Check. The status becomes «active». From that moment VPN access requires the domain password plus the code.

If something goes wrong. «Wrong or expired code. Try again with the current one.» means the code changed in the meantime, or the phone’s time is off: check that the time is set automatically.

Example: lost the phone

Situation. Jack Green changed phone and no longer has the code.

Steps (administrator).

  1. Open Tools → MFA enrollment and search for jgreen.
  2. Press «Revoke token» (the code is not needed).
  3. Tell Jack to sign in and choose «Enroll token» with the new phone.

If something goes wrong. If the token appears «locked» but Jack still has the old phone, «Unlock» is enough.

Example: adding a passkey

Situation. With single sign-on active, John Smith wants to sign in with the laptop’s fingerprint.

Steps.

  1. Tools → MFA enrollment, «Passkeys» box.
  2. Press «Add passkey»; the browser shows the system prompt (fingerprint, face or PIN).
  3. Back on the page, read «Passkey registered.» and rename it Office laptop.

Limits. One token per user. The QR cannot be seen again. Passkeys serve only where there is single sign-on; the VPN keeps asking for password and code. Access from the internet with the second factor is explained in the scenario «Opening the console to the internet safely» of Part III.

For the technician The MFA server is privacyIDEA (edon-mfa); the edon-radius-mfa library enrols the TOTP tokens and checks them for the VPN’s RADIUS and for access from the internet. Passkeys live in Keycloak (edon-sso). In the clients (Edon Client without SSO, agents) the code is written in the password field, right after the password. If pgsql is restarted, privacyIDEA may answer 500 until edon-mfa is restarted too (this is already fixed with pool_pre_ping).


LET’S TALK INFRASTRUCTURE

Control starts with a conversation.

Tell us about your infrastructure. Let’s start with what you actually need.

Talk to an engineer