Passkeys and security keys
Copy as MarkdownA passkey or a security key is a second factor that a phishing site can't use: the browser only hands it to the web address it was made for. It works next to the authenticator app, and where your device checks you with a fingerprint, your face or a PIN, it also signs you in without your password.
A passkey can live in a password manager or your phone's account (a synced passkey, available on all your devices), or on one device: a laptop's fingerprint reader, a phone, or a USB or NFC security key such as a YubiKey.
Browsers offer passkeys only on a secure page with a host name. The console works with them when you open it at a host name over HTTPS, for example https://desk.example.com. At an IP address, or over plain HTTP at any address but localhost, the console says that passkeys need the console at a host name over HTTPS, and offers none. See Reverse proxy and TLS to put the console behind HTTPS.
A passkey belongs to the host name it was made at. When an administrator has set the console's address (Console address under Settings, Single sign-on, or PANEL_PUBLIC_URL), passkeys are made for that host name, and the console refuses passkeys at any other address it is reached at. If the console moves to another host name later, the passkeys made before stop working there: add new ones at the new address.
- Open the account menu at the end of the top bar, choose Your account and go to Passkeys and security keys. See Your account.
- Click Add passkey.
- Give it a Name you will recognise, such as "Work laptop" or "YubiKey".
- Enter your Password and click Add passkey.
- Your browser asks where to keep the passkey. Follow its steps: choose the password manager, the phone or the security key, and confirm with your fingerprint, face, PIN or a touch of the key.
Directory and single sign-on accounts have no password in this console. They add a passkey within ten minutes of signing in; later, the console asks them to sign in again first.
When the passkey is the account's first second factor (no authenticator app yet), the page shows eight Recovery codes once. Store them somewhere safe: they sign you in when you lose the passkey.
Each passkey shows whether it is a Synced passkey or On one device, whether it Signs in without a password, when it was added and when it was last used. A security key that doesn't check a PIN or fingerprint is a second factor only. An account can have up to 20 passkeys.
On the sign-in page, click Sign in with a passkey. Your browser shows the passkeys it has for this console; choose yours and confirm with your fingerprint, face or PIN. You don't type a username or password.
Your account still has its password. When you sign in with the password, the passkey is the second factor: after the password, the page asks you to Use your passkey. If your account has the authenticator app too, the page offers both. The console asks for a passkey only if your account has one, and accepts a passkey only of your own account.
Use a recovery code instead works as with the app: each recovery code works once, and New recovery codes under Passkeys and security keys makes eight new ones after you confirm with a passkey.
An administrator can turn off signing in with a passkey alone (see Settings). The passkey stays your second factor after the password then.
NeoDesk Desktop's password sign-in and the API can't ask for a passkey. An account whose only second factor is a passkey, or whose role must use one, gets "This account signs in with a passkey or security key. Sign in through the web console instead (Sign in with NeoDesk in the desktop app)." In NeoDesk Desktop, choose Sign in with NeoDesk: Desktop opens the console in your browser, you sign in there with the passkey and allow the sign-in (see Sign in through the browser).
An account with the authenticator app as well keeps signing in to NeoDesk Desktop with the authenticator app's code, unless its role must use a passkey.
Where the console asks a signed-in person for the authenticator app's code to confirm a sensitive action, a passkey works too. Sign in as asks an administrator with a passkey to confirm with it when they click Start; an administrator with both can choose Type a code from your authenticator app instead. The passkey's answer works once, for two minutes, and only for the account that gave it.
Under Your account, Passkeys and security keys, click Rename or Remove next to the passkey. Removing it stops it working in this console; remove it from the password manager, the phone or the key too.
When your role must sign in with a passkey, the console keeps your last one: add another before you remove it. Keep at least two in that case, in case you lose one.
An administrator with Manage sign-in security of users opens People, Users, and in the person's row menu, under Sign-in security, chooses Reset two-factor sign-in… or Turn off two-factor sign-in…. Both remove the person's passkeys together with the authenticator app's key and the recovery codes, end their console sessions, and mail them. The person's page lists their passkeys by name, with when each was last used.
For an administrator locked out of every account, the server's password reset command with --reset-two-factor also removes the account's passkeys; see If the only admin is locked out.
An account with the Change server settings permission sets two things under Settings, Sign-in, Signing in to the console:
- Sign in with a passkey alone: on by default. A passkey that checks the person (fingerprint, face or PIN) signs in without the password. Off: passkeys are only a second factor after the password.
- Roles that must use a passkey: accounts of these roles sign in with a passkey or security key. Without one, they add one at their next sign-in: after the password (and the app's code when they have it), the sign-in page shows Add a passkey and the sign-in ends once it is added. Once they have one, the authenticator app's code no longer counts for them, at sign-in or to confirm an action. Recovery codes keep working. Super admin covers the older role Administrator too.
Single sign-on accounts sign in through their identity provider, and its rules apply there.
Both apply from the next sign-in. People signed in now stay signed in.
neodesk settings passkeys
neodesk settings passkeys-set --signin=false
neodesk settings passkeys-set --required-roles super_admin,server_admin
neodesk settings passkeys-set --required-roles ""
neodesk users passkeys 12settings passkeys-set changes how people sign in, so it needs a full API token. Adding, using and removing passkeys happen in the browser; API tokens can't do them. See API tokens.
| Entry | When |
|---|---|
| Passkey added | Someone added a passkey under Your account, or during a sign-in their role required it in |
| Passkey renamed | Someone renamed one of their passkeys |
| Passkey removed | Someone removed one of their passkeys |
| Passkeys removed by an admin | A reset or turn-off of two-factor sign-in removed an account's passkeys |
| Passkey settings changed | Someone changed Sign in with a passkey alone or Roles that must use a passkey |
A sign-in with a passkey writes the usual Login entry with "passkey" and the passkey's name in its details. A passkey the console refused writes a failed sign-in. The person gets a security mail when a passkey is added or removed, if the mail about two-factor changes is on (see Security notices).
How the console checks a passkey, and what it guards against, is in the security model.
