WebAuthn / FIDO2 / Passkeys authenticator setup stage
The WebAuthn / FIDO2 / Passkeys Authenticator setup stage enrolls a WebAuthn authenticator for the current user.
About the WebAuthn authenticator setup stage
This stage supports common WebAuthn authenticator types, including:
- security keys such as YubiKey or Google Titan
- platform authenticators such as Windows Hello, Touch ID, or Face ID
- passkeys stored by operating systems or password managers
Enrolled authenticators can later be used with the Authenticator Validation stage.
Configuration options
- Additional accepted origins: additional trusted origins for registration, matched exactly. The current request origin is always accepted.
- User verification: require, prefer, or discourage built-in user verification during registration.
- Resident key requirement: control whether the authenticator should create a discoverable credential.
- Authenticator Attachment: restrict enrollment to platform authenticators, cross-platform authenticators, or leave it unrestricted.
- Hints: browser hints that influence which authenticator is preferred during enrollment.
- Device type restrictions: limit enrollment to specific WebAuthn device types.
- Maximum registration attempts: maximum number of failed registration attempts before the stage denies access. A value of
0disables the limit. - Authenticator type name: optional friendly name shown to the user in self-service settings.
- Configuration flow: optional authenticated flow that lets users enroll this authenticator from user settings.
Flow integration
Use this stage in an enrollment or user-settings flow where the user should register a passkey or hardware key.
To require those devices during login, add an Authenticator Validation stage to the authentication flow and allow the WebAuthn device class.
If you want passkey autofill on the login form itself, configure the Identification stage to reference a WebAuthn-capable Authenticator Validation stage.
Notes
Additional accepted origins
By default, authentik accepts only the origin derived from the current request, such as https://authentik.company. To register credentials from another trusted origin, add it to Additional accepted origins. Values are matched exactly against the origin in the WebAuthn response. Examples include HTTPS origins such as https://authentik.company and native Android origins in the form android:apk-key-hash:<certificate-hash>; other native origin formats can also be configured. Empty values, whitespace, wildcards, and null are not allowed.
authentik does not validate platform-specific origin formats. Enter the exact origin produced by the client; for a browser HTTPS origin, omit paths, trailing slashes, queries, fragments, and credentials. A mistyped origin will not match.
This setting applies to registration in this stage. Configure Additional accepted origins separately on the Authenticator Validation stage to permit authentication from the same app. Every flow using a stage shares its origin configuration.
Origin approval does not change the relying-party ID (RP ID), which remains the authentik request hostname, or bypass challenge, signature, or RP-ID verification. WebAuthn permits explicitly trusted native application origins.
Native Android apps
For an app that calls Android Credential Manager directly:
- Obtain the SHA-256 fingerprint of the certificate that signs the installed app. With Google Play App Signing, use the app signing certificate rather than the upload certificate.
- Encode the fingerprint's raw bytes as unpadded base64url and prefix the result with
android:apk-key-hash:. Add the complete value to the relevant setup and validation stages. See Android's passkey registration documentation for the conversion procedure. Add separate origins for each signing certificate that you intend to trust. - Publish a Digital Asset Links document at
https://<authentik-rp-id>/.well-known/assetlinks.json. Grantdelegate_permission/common.get_login_credsto your app's package name and signing-certificate fingerprint. Digital Asset Links uses colon-separated hexadecimal fingerprints, not the base64url form used in the origin. - Use the RP ID supplied by authentik when invoking Credential Manager, and submit the credential response through the authentik flow API while maintaining the flow session.
authentik does not generate, host, or manage assetlinks.json. Serve it through your reverse proxy or other infrastructure on the RP-ID domain. Configuring an accepted origin does not replace this Android app/domain association; both are required.
An app that opens authentik's login page in a browser or custom tab uses the website's HTTPS origin and does not need a native origin entry for that ceremony. Passkey providers such as Bitwarden or Google Password Manager do not need to be added to the origin list: the native origin identifies the requesting app, not the provider storing the passkey.
User verification
User verification controls whether authentik requires, prefers, or discourages user verification on the authenticator itself. On platform authenticators such as Windows Hello, that can determine whether a PIN or biometric check is required.
Resident key requirement
For passkey-based passwordless login, set Resident key requirement to Preferred or Required so the created credential is discoverable.
Authenticator attachment
Use Authenticator Attachment when the flow should prefer either removable authenticators such as YubiKeys or built-in authenticators such as Touch ID, Windows Hello, or password-manager passkeys.
Signature algorithms
Registration accepts EdDSA, ES256, and RS256 credentials, and the post-quantum ML-DSA-44, ML-DSA-65, and ML-DSA-87 algorithms (FIPS 204). Authenticators pick the first algorithm they support, so ML-DSA is only used by devices that offer nothing else. No shipping authenticator supports ML-DSA yet.
The validated OpenSSL FIPS provider does not implement Ed25519 or ML-DSA, so when FIPS compliance mode (AUTHENTIK_COMPLIANCE__FIPS__ENABLED) is turned on, authenticators are offered ES256 and RS256 only. A credential that was registered with another algorithm cannot be used to log in while FIPS mode is enabled and must be registered again.
This controls the authenticatorAttachment parameter sent to the browser during WebAuthn registration:
- No preference is sent: the browser can offer any available authenticator.
- Platform: prefer a non-removable authenticator built into the device, such as Touch ID, Face ID, or Windows Hello.
- Cross-platform: prefer a roaming authenticator, such as a YubiKey or Google Titan.
If WebAuthn hints are configured and this option is left unset, authentik infers an attachment value from the selected hints for backward compatibility with older browsers.
WebAuthn hints
Hints are advisory and browsers can ignore them based on available authenticators or platform capabilities.
Optional hints can guide the browser toward a preferred authenticator type during registration:
- Security key: prefer registering a credential with a portable FIDO2 device such as a YubiKey.
- Client device: prefer registering a credential with a built-in platform authenticator such as Touch ID or Windows Hello.
- Hybrid: prefer registering a credential using a platform authenticator on a nearby mobile device, typically through a QR code.
The order of selected hints matters. For example, selecting Security key before Hybrid asks the browser to prefer security keys before hybrid registration.
For backward compatibility with older browsers that do not support hints, authentik automatically infers the authenticatorAttachment parameter from the selected hints when Authenticator Attachment is not explicitly set:
- Only Security key and/or Hybrid hints:
cross-platform - Only Client device hints:
platform - If both client-device and cross-platform hints are selected, no value is inferred
Duplicate devices
During registration, authentik sends the user's already-enrolled credentials in the excludeCredentials parameter. An authenticator that already holds a credential for the account refuses to create another one, and the user is told that the device is already registered. Because the list only contains the current user's credentials, the same authenticator can still be enrolled by different users.
The Prevent duplicate devices option was removed in 2026.8. It compared attestation certificates, which manufacturers share across entire production batches, so it rejected legitimate enrollments of a second security key. No configuration replaces it, and no action is needed when upgrading.
Device type restrictions
Device type restrictions are an allowlist for WebAuthn registration. When no device types are selected, authentik allows any WebAuthn authenticator that the browser and authenticator can register. When one or more device types are selected, authentik only allows registration when the authenticator returns an AAGUID that matches one of the selected entries.
The available device-type entries are populated from the FIDO Alliance Metadata Service data and additional AAGUID metadata bundled with the authentik release. This lets you restrict enrollment to specific hardware families or passkey providers listed in that metadata.
If you select specific device types, newly added metadata entries are not allowed automatically. Review this allowlist after authentik upgrades if your compliance policy should include newly recognized authenticators.
authentik also includes the special device-type authentik: Unknown devices. Select it only when you want to allow authenticators that return an AAGUID that is not present in authentik's device-type metadata. Authenticators that do not return an AAGUID cannot satisfy a device-type restriction.