In WebAuthn, allowCredentials is a crucial field in the PublicKeyCredentialRequestOptions object (in developer forums, it's also often called allowList or WebAuthn allowList). It's used during the authentication (login) process to specify which registered credentials can be used to authenticate a user. This field contains a list of PublicKeyCredentialDescriptor objects, indicating acceptable public key credentials to the Relying Party (RP). Its significance lies in:
The allowCredentials field in WebAuthn plays a pivotal role in defining a secure and efficient authentication flow. By specifying which credentials are acceptable, it ensures that the authentication process is both secure and user-friendly.
allowCredentials specifies which registered credentials can be used for user authentication, guiding the client in the authentication process.
It enhances security by specifying exact credentials for authentication, and improves user experience by streamlining the credential selection process.
Without an allowCredentials list, the client may not know which specific credential to use, leading to additional user interaction to select the appropriate credential.
Corbado is the Authentication Intelligence Platform for CIAM teams running consumer authentication at scale. We help you see what IDP logs and generic analytics tools can't: where passkeys, passwords, OTP, social login and fallback journeys succeed, stall or fail, which devices and browsers create friction, and when an OS update silently breaks login. Two products: Corbado Observe layers process mining and observability across authentication journeys. Corbado Connect adds managed passkeys with analytics built in alongside your IDP. VicRoads runs passkeys for 5M+ users with Corbado (+80% passkey activation). Talk to a Passkey Expert →
Table of Contents
Related Articles