WebAuthn 驗證器 attachment:選擇 platform 或 cross-platform
WebAuthn 的 authenticator attachment 表示驗證器是整合在目前用戶端裝置上(`platform`),還是從另一部裝置連線使用(`cross-platform`)。註冊時可以偏好或篩選類型,但 RP 無法在登入時強制使用偏好的 attachment。此分類不代表備份資格或保證等級。
WebAuthn 驗證器 attachment:選擇 platform 或 cross-platform
WebAuthn 的 authenticator attachment 表示驗證器是整合在目前用戶端裝置上(platform),還是從另一部裝置連線使用(cross-platform)。註冊時可以偏好或篩選類型,但 RP 無法在登入時強制使用偏好的 attachment。此分類不代表備份資格或保證等級。
W3C WebAuthn Level 3 說明,platform 驗證器通常整合於裝置;roaming 驗證器則可透過 USB、NFC 或 Bluetooth 等方式跨裝置使用。同一實體裝置會依使用情境作為 platform 或 roaming 驗證器運作。
註冊時選擇
authenticatorSelection.authenticatorAttachment 可設為 platform 或 cross-platform。省略時兩者皆可。例如,可偏好 platform 以便在單一裝置快速登入,也可要求 cross-platform 以註冊公司配發的安全金鑰。限制可用範圍時,也要規劃換機、無障礙和帳戶復原的替代方法。
解讀登入結果
驗證成功後,PublicKeyCredential.authenticatorAttachment 可能回報本次 ceremony 使用的類型。它只說明這次回應如何進行,無法證明同一 credential 能在新裝置使用、驗證器受到管理或 credential 會同步。對 null 或未知值應謹慎處理;伺服器仍須驗證標準 assertion。
| 類型 | 常見意義 | 可能適用 | 單靠分類無法得知 |
|---|---|---|---|
platform | 整合於目前用戶端的驗證器 | 使用裝置解鎖或內建驗證器快速登入 | 是否為組織所有或無法備份 |
cross-platform | 從另一部裝置連線使用的驗證器 | 部署安全金鑰或跨裝置使用外接驗證器 | 金鑰由誰持有或是否安全 |
參考資料
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)