Vincent
Created: July 11, 2025
Updated: July 12, 2025
See the original glossary version in English here.
在 WebAuthn
中,authenticatorSelection 是
PublicKeyCredentialCreationOptions
对象的一个重要组成部分。该功能使信赖方 (RP)
能够在 create()
操作期间指定选择合适认证器的标准。其重要性在于:
"authenticatorSelection": { "authenticatorAttachment": "platform", "residentKey": "required", "requireResidentKey": false, "userVerification": "required", }
继续阅读,了解 authenticatorSelection 的可能值和配置的详细信息。
WebAuthn 中的 authenticatorSelection 对于确保认证过程符合特定的安全要求和用户体验偏好至关重要。它为信赖方提供了根据其安全需求定制注册过程的灵活性。
以下是 WebAuthn 规范中指定的可能值的概述:
可能的值:
此值仅用于与 WebAuthn 级别 1 的向后兼容,如果 residentKey 设置为 "required",则此值设置为 "true"。
此值表示操作是否需要用户验证。可能的值是:
警告: 如果设置为 "preferred",认证器可能会在认证过程中跳过用户验证。请在这篇文章中阅读有关此问题的更多信息。
WebAuthn 中的 authenticatorSelection 允许信赖方指定适合其认证过程的认证器类型,包括对用户验证的要求和认证器的类型。
它通过确定所用认证器的类型(平台或漫游)并设置用户验证的级别来影响用户体验,从而影响认证过程的便捷性和安全性。
The authenticatorAttachment setting in authenticatorSelection dictates whether a fixed platform authenticator or a removable cross-platform authenticator is required, affecting the physical and functional characteristics of the authentication process.
Table of Contents
Enjoyed this read?
🤝 Join our Passkeys Community
Share passkeys implementation tips and get support to free the world from passwords.
🚀 Subscribe to Substack
Get the latest news, strategies, and insights about passkeys sent straight to your inbox.