Setting Up Multi-Factor Authentication for Your Firm
Two methods, one or both required, and the rule that a passkey needs a backup authenticator. Plus the inactivity windows, where active sessions are listed, and how a locked-out colleague gets back in.
Pental supports two second factors: a passkey, which is the fingerprint reader or security key on the device in front of you, and an authenticator app producing a six-digit code. Which of them your firm accepts is a setting, and the setting is enforced in your database rather than in the screen, so a modified browser cannot skip it. Security covers how the rest of the portal leans on that check.
Choose which methods you accept
Settings, then Security, under MFA Methods; administrators and seniors set it. You are choosing two things: the Allowed methods (Authenticator app, and Security key / passkey), and the Required methods, either At least one method (recommended) or Both methods (strict). The default is both allowed and at least one required, which is the right answer for most firms. Enrolments already made stay valid if you later disallow a method, but nobody can newly enrol it.
Requiring both is not paranoia if your people carry client data on laptops. It does mean every new colleague sets up twice before they can work, so decide it before you invite anybody rather than after.
A passkey always brings a backup authenticator with it, whichever policy you pick, unless authenticator apps are not allowed. The enrolment screen says why: a passkey works on the device and browser it was made on. It is also tied to your portal’s address, so moving the portal to a new domain, or back to your Pental subdomain, clears passkeys, and anyone who used one sets up a new one the next time they sign in. Authenticator apps keep working through a change of address.
Second factors and encrypted work
The testing work is end-to-end encrypted, and a second factor is not what opens it. On a new browser, a person’s keys are opened by their password as they sign in, with nothing else for them to do. A passkey and an authenticator app are second factors only, so which of them a team uses makes no difference to it. End-to-end encryption sets out the rest.
What a person sees on their first sign-in
They sign in, and before they reach anything they are asked to enrol. If both methods are allowed they choose; if the policy is Both methods (strict), they are walked through both in turn. Registering the passkey stamps the session as verified, so adding the backup authenticator immediately afterwards does not ask them to prove anything again.
Somebody who registers a passkey and closes the tab is not finished. On their next sign-in they are asked for the passkey first, and then sent straight to the backup step. That order matters: the database refuses to add an authenticator to a session that has not proved an existing one, because a six-digit code only proves possession of the new secret, which whoever stole the session also has.
Set the inactivity windows
Same screen, above MFA Methods. Two numbers decide what happens to a session that sits idle, and a third when its sign-in token is renewed, each with the screen’s own description:
| Setting | What it does |
|---|---|
| Authenticator Re-verification | After this many minutes without activity (480 to begin with), the person enters their authenticator code again to carry on. Two minutes before, the portal says so, and Stay signed in, or simply carrying on, keeps the session going. The session stays alive, and the password is not asked for again. |
| Re-verify at Least Every | However active somebody is, they enter their authenticator code again this long after they last entered it (1,440 minutes, a day, to begin with, from 60 minutes to 30 days, and never shorter than re-verification), so a session somebody has taken cannot be kept going for ever. Until then, working in the portal keeps the session going. When it comes, the portal says so, and why. |
| Full Sign Out | After this many minutes without activity (1,440 to begin with), the person is signed out and signs in again from the start. It must be longer than the re-verification window, and the screen will not save it otherwise. |
| Token Refresh Buffer | This keeps people signed in: the sign-in only lasts a short while, so the portal renews it this many minutes before it runs out (5 to begin with, from 1 to 30), and when the browser tab comes back into view. It does not keep the authenticator code from being asked for, because renewing happens whether or not anybody is there: only working in the portal does that, up to Re-verify at Least Every. Most firms never change it. |
When Re-verification Is Due, on the same screen and in the setup wizard’s security step (which Re-run Setup Wizard at the top of Settings opens again), chooses what happens when the re-verification window passes with nothing done: Ask for the authenticator code (still signed in), which keeps the session and asks for the second factor again, or Sign out, which ends it. Somebody working when Re-verify at Least Every comes is asked for the code either way. The first suits a firm working in long sittings; the second suits shared spaces and machines that are not people’s own. A change to any of these applies at once, in every portal signed in.
When somebody is locked out
An administrator or a senior clears a colleague’s second factor with Reset MFA on the Users list (or on a client’s Portal Users, for a client login), which sends them back to enrolment on their next sign-in. They must have passed their own second factor in this session, and can reset only somebody below them; another administrator’s is for the account owner alone.
Nobody at Pental can do this for you. What Pental holds to reach your database (its address, its publishable key and a provisioning credential) cannot clear a second factor, so the reset takes a signed-in administrator or senior of your portal. If every administrator is locked out, your database’s owner runs select public.owner_reset_mfa('person@yourfirm.com'); in Supabase’s SQL editor, or with psql behind a Pental gateway, which has no SQL editor; adding your team has the detail. That is the trade for the data living in your own database, and it is worth telling a client during a security review.
Other sessions
The Active Sessions card on your dashboard lists the devices signed in as you, with where each signed in from and when it was last active, and Revoke on each; administrators also find the list under Settings, Security, with Sign out other devices. Worth doing after a conference, or any time a machine leaves your control.
Every screen above is on your database. If a colleague reports that MFA settings will not save, the first thing to check is that your database is on the current schema: the portal shows an update prompt to administrators when it is not. Changing the portal’s address, moving it to your own domain for instance, clears passkeys, so make that move before people enrol them.
Set This Up on Your Own Database
Which methods you accept, and how recently somebody passed one, are checked by your own database under policies you can read, not by a screen that hides a button.
Free trialYour trial starts when your portal goes live, not when you sign up, so the time you spend setting up does not count. · No card required
Only need the reporting? Our reporting tool is free and open source, on your own server.
Also Worth Reading
Adding Your Team, Roles and Multi-Factor Authentication
Five roles, and what your database holds each to. Two second-factor methods, a policy for whether one or both are required, and two inactivity windows worth setting deliberately.
DatabaseCreating Your Database: Three Ways to Run It
Your portal runs end-to-end encrypted on a database you own, in one of three places: PostgreSQL in your own cloud, self-hosted Supabase, or Supabase Cloud. What each is, its pros and cons, and the full guide for each.
DatabaseSetting Up Your Database on PostgreSQL in Your Cloud
Your cloud’s own PostgreSQL on Azure, AWS or Google Cloud, or a server of yours, with the small Pental gateway beside it. One command builds it all, and it applies Pental’s signed updates itself.
Setup guide
Prefer to watch it?
The whole setup recorded, with chapters you can jump to: your firm's name, your own domain, your own database in any of three places, email from your own address, branding, updating the database on Supabase Cloud, and moving the database if you change your mind.
- 0:00 · Your name and your firm’s name
- 0:15 · Custom domain
- 0:43 · Your own database, three ways
- +4 more