WebAuthn authenticator attachment: choosing platform or cross-platform
WebAuthn authenticator attachment describes whether an authenticator is integrated with the client device in use (`platform`) or used from another device (`cross-platform`). Registration can prefer or filter a type, but an RP cannot force a preferred attachment during sign-in. Attachment does not indicate backup eligibility or assurance level.
WebAuthn authenticator attachment: choosing platform or cross-platform
WebAuthn authenticator attachment describes whether an authenticator is integrated with the client device in use (platform) or used from another device (cross-platform). Registration can prefer or filter a type, but an RP cannot force a preferred attachment during sign-in. Attachment does not indicate backup eligibility or assurance level.
W3C WebAuthn Level 3 describes platform authenticators as typically integrated with a device and roaming authenticators as usable across devices through USB, NFC, or Bluetooth. The same physical device can act as platform or roaming depending on context.
Choosing during registration
authenticatorSelection.authenticatorAttachment can be platform or cross-platform. If omitted, either is allowed. You might prefer a platform authenticator for convenient sign-in on one device, or require cross-platform for a company security key. Because this limits eligible authenticators, also plan for device replacement, accessibility, and recovery.
Interpreting the sign-in result
After authentication, PublicKeyCredential.authenticatorAttachment may report the type used in that ceremony. It says how that response proceeded; it does not prove the credential will work on another device, that the authenticator is managed, or that the credential syncs. Handle null or unknown values conservatively. The server must still validate the standard assertion.
| Type | Typical meaning | May fit | Does not establish |
|---|---|---|---|
platform | Authenticator integrated with the current client | Device unlock or built-in authenticator for convenience | Organizational ownership or lack of backup |
cross-platform | Authenticator connected from another device | Security-key deployment or external authenticator across devices | Who owns the key or whether it is secure |
References
W3C, [Web Authentication Level 3: Authenticator Attachment Modality](https://www.w3.org/TR/webauthn-3/#sctn-authenticator-attachment-modality)
W3C, [Web Authentication Level 3: Authenticator Selection Criteria](https://www.w3.org/TR/webauthn-3/#dom-authenticatorselectioncriteria-authenticatorattachment)