6.3.1.11. Passkey

Starting with version 3.11 privacyIDEA supports Passkey token. A passkey is a FIDO authentication credential based on FIDO standards, that allows a user to sign in to apps and websites with the same process that they use to unlock their device (biometrics, PIN, or pattern). Passkeys are FIDO cryptographic credentials that are tied to a user’s account on a website or application. Passkeys are phishing resistant and secure by design. They inherently help reduce attacks from cybercriminals such as phishing, credential stuffing, and other remote attacks.

This is a variation of the WebAuthn token, which is also a FIDO2 token supported by privacyIDEA. Therefore, it inherits the configuration of the Webauthn token, which is described here: WebAuthn Token Config. The Passkey token always requests to be created as a resident credential, i.e. the option resident_key is always set to required, in contrast to the WebAuthn token, which does not request a resident key.

To enroll a passkey, the policies webauthn_relying_party_id and webauthn_relying_party_name have to be set. Moreover, passkeys always require a user assignment for enrollment.

Passkeys are eligible for offline use as specified here Offline as well as enroll_via_multichallenge. However, these features also have to be implemented in the client application.

Using passkeys in different browsers and environments can yield different user experiences. Most, if not all browsers, will not allow enrollment of a passkey to a authenticator which does not have a PIN set, i.e. user verification is always required for enrollment. Therefore, webauthn_user_verification_requirement does not affect passkey enrollment. The same policy webauthn_user_verification_requirement is available in the scope authentication and that policy does affect passkey authentication. A login to the WebUI with a passkey always requires user verification, and so does a login to the WebUI without a username with a WebAuthn token.

Note

If user verification is not required on authentication and a user has multiple discoverable credentials for the same relying party on one authenticator (typically an external FIDO2 security key with several passkeys enrolled to the same site), the browser’s account picker may display generic placeholder labels for the credentials (for example “Passkey 1”, “Passkey 2” or “Unknown”) instead of the actual user names. This is a CTAP2 behavior: the authenticator only releases the user.name and user.displayName fields of a discoverable credential after user verification has been performed. Without UV, the browser has only the opaque user.id handle to work with and falls back to a non-identifying label. The exact string shown depends on the browser and operating system. Platform authenticators (Touch ID, Windows Hello, Face ID, synced platform passkeys) intrinsically perform user verification on every assertion and are not affected. Set webauthn_user_verification_requirement to required if you want the names to appear in the picker for external security keys as well.

On the token detail page, the passkey can be tested and, if successful, will show the username that is returned by privacyIDEA to use for login.

6.3.1.11.1. User Label

The name of the passkey that the authenticator shows in the credential selection during login (and during registration) can be configured with the policy passkey_user_label. This is useful to tell passkeys apart, for example when the same login name exists in several realms. The resolved value is also used as the display name. If the policy is not set, the login name of the user is used. The policy value supports tags such as {user} (login name), {realm}, {resolver} and {serial}, as well as any attribute the user’s resolver provides (e.g. {givenname}, {surname}, {email}). A value like {user}@{realm} results in a name such as alice@example. See the policy for details on the available tags and the 64 byte length limit.

6.3.1.11.2. Attestation

Attestation during passkey registration is controlled by its own policy, passkey_attestation_conveyance_preference. The WebAuthn attestation policies webauthn_authenticator_attestation_form and webauthn_authenticator_attestation_level do not apply to passkey enrollment.

The default and recommended value is none. Passkeys are intended as a user-friendly, privacy-preserving credential, and requesting attestation works against both goals:

  • With none, the authenticator data returned to privacyIDEA contains a zeroed AAGUID and no attestation statement, so the specific make and model of the authenticator is not disclosed.

  • With indirect, direct or enterprise, the authenticator returns its real AAGUID and an attestation statement. If the statement contains an x5c certificate chain, the leaf certificate (which typically identifies the make and model of the authenticator) is stored in the token info as attestation_certificate. If the token has no description yet, its description is set to the certificate’s Common Name.

  • Requesting attestation also causes additional friction during enrollment: most browsers will show an extra consent dialog informing the user that information identifying their authenticator will be sent to the site, which can be confusing for end users and is not aligned with how passkeys are typically presented.

privacyIDEA currently only archives the attestation certificate; there is no trust-chain validation, AAGUID allow-listing or filtering of passkey tokens based on attestation data. If attestation-based filtering or trust validation is required, use the WebAuthn Token Config instead.

6.3.1.11.3. Device type

Every passkey reports one of two device types:

  • single_device: the private key cannot be backed up and does not leave the authenticator, for example a FIDO2 security key or a platform authenticator that does not sync.

  • multi_device: the private key can be backed up, typically because a passkey manager syncs it to the user’s other devices through a cloud account.

The device type is derived from the backup eligibility flag in the authenticator data. This flag is fixed when the credential is created and does not change afterwards. privacyIDEA stores the device type in the token info as device_type. The token info backed_up records whether the credential had actually been backed up at the time of enrollment. That state can change at any time and is not updated later, so it is for information only.

The policy passkey_allowed_authenticator_device_types restricts passkeys to one of the device types. It exists in the enrollment scope and in the authentication scope, and the two are independent of each other.

Warning

The device type is reported by the authenticator itself. It is part of the signed authenticator data, so neither the browser nor any other party between the authenticator and privacyIDEA can change it. The signature is made with the passkey’s own key, however, so it only proves that the authenticator holding the key reported this device type, not that the device type is true. Only a verified attestation could vouch for the authenticator, and privacyIDEA does not validate attestation for passkeys (see above).

The policy therefore reliably keeps out passkeys whose authenticator honestly reports multi_device, such as passkeys synced by the passkey manager of the operating system. It does not keep out an authenticator that reports single_device although it can export or sync the key, whether because of a faulty implementation or because it was manipulated on purpose, for example a software authenticator. If you need assurance that the key cannot leave the hardware, use the WebAuthn Token Config and set webauthn_authenticator_attestation_level to trusted.

6.3.1.11.4. Avoiding double registration

During passkey enrollment, privacyIDEA always sends the credential ids of the user’s existing passkey and WebAuthn tokens in the WebAuthn excludeCredentials list. The authenticator will then refuse to create a new credential if it already holds one of these, preventing a user from accidentally registering the same authenticator twice. Unlike the webauthn_avoid_double_registration policy for WebAuthn tokens, this behavior is always on for passkeys and is not configurable.

Tokens that have been revoked are excluded from this list, so the same authenticator can be re-enrolled for the user after revocation. Tokens that are merely disabled are still included, since disabling is reversible and the underlying credential is still bound to the user. Tokens whose enrollment never finished (rollout state clientwait) are also excluded.

6.3.1.11.5. Relationship to the WebAuthn token

Platform credentials (Touch ID, Windows Hello, synced platform passkeys) that were enrolled as WebAuthn tokens before the passkey token type existed are still usable through the usernameless passkey flow. See Using existing WebAuthn tokens as passkeys for the encoding background and the recommendation to prefer the passkey token when both a passkey and a WebAuthn token are triggered for the same user in one transaction.

A non-exhaustive list of devices that are known to work can be found here FIDO2 & WebAuthn Devices.