Passkeys Login
The PrivX Web UI uses WebAuthn to let you log in with a discoverable passkey. When you choose passkey login, your device prompts you to select a passkey for your PrivX account. You do not need to enter your username.
You can use a passkey stored on your device or on a hardware security key such as a YubiKey. Depending on your device, you may be prompted to verify your identity with a fingerprint, facial recognition, or a PIN.
By default, all PrivX users have the privx-user system role. Its permissions let users manage their own authorized keys and register their own passkeys. Passkey registration requires the webauthn-credentials-manage permission. Administrators can remove this permission from privx-user and grant it through another role to limit who can register passkeys.
Enabling Passkey Login
Passkey login is disabled by default. To enable it:
-
Go to Administration → Settings → Authentication and under Login Methods enable Enable Passkey Login.
-
On each PrivX server, set
frontend_addressin/opt/privx/etc/shared-config.tomlto the public URL that users enter in their browser. The URL must use a DNS hostname. For example:frontend_address = "https://privx.example.com/privx"PrivX uses the hostname (
privx.example.comin this example) as the WebAuthn relying party ID (RP ID). Passkey authentication does not work with an IP address. In an HA deployment, use the same public frontend URL on all nodes. -
Restart PrivX to apply your changes.
-
Grant the
webauthn-credentials-managepermission to users who need to register their own passkeys in PrivX. For instructions, see Granting User Permissions.
Registering Passkeys
- Log in to the PrivX Web UI and go to your Account page.
- Under Passkeys, click Add Passkey.
- Follow the prompts on your device to register the passkey for your PrivX account.
Logging In with Passkeys
- On the PrivX login page, click Continue with a Passkey.
- When your device prompts you, select the passkey for your PrivX account and follow the prompts to log in. If the attempt times out, click Continue with a Passkey to try again.
Passkeys registered in PrivX 38 or earlier are non-discoverable and may stop working after you upgrade to PrivX 46. If your passkey stops working after the upgrade, log in using another available method and register a new passkey.
Passkey Settings
Passkey settings are available on Administration → Settings → Authentication, under Passkey Settings. You can:
- Limit registration to one passkey per device by enabling Restrict duplicate device registration. This setting is disabled by default. When you enable it, users can continue to use passkeys they have already registered, including duplicates.
- Set timeouts for passkey operations. PrivX enforces the configured timeout for passkey login attempts.
- Restrict the algorithms allowed for passkeys.
Troubleshooting Passkey Login
Passkey Login Unavailable
If passkey login is enabled but the WebAuthn configuration is invalid, PrivX still starts and other login methods remain available. The Continue with a Passkey button does not appear on the login page. On the status page, the auth service reports the following warning:
Passkey authentication unavailable: invalid WebAuthn configuration. Check auth logs.
Check the auth service logs for the cause. If frontend_address contains an IP address, PrivX starts, but the login page does not offer passkey login. Set frontend_address in /opt/privx/etc/shared-config.toml to the public URL with the correct DNS hostname, then restart the auth service.
Existing Passkeys Stop Working After Hostname Change
Each passkey is tied to the hostname that PrivX used as its RP ID during registration. If the public hostname changed, restore the original hostname where possible. If you keep the new hostname, users must register new passkeys.