Skip to content

credential ID returned by authenticatorGetAssertion() is optional if allowList has exactly one member #472

@equalsJeffH

Description

@equalsJeffH

The authenticatorGetAssertion operation says:

On successful completion, the authenticator returns to the user agent:
* The identifier of the credential used to generate the signature.
* The authenticator data used to generate the signature.
* The assertion signature.

However, the CTAP spec says in 4.2 authenticatorGetAssertion:

On success, the authenticator must return the following structure in its response:

Member name  Data type   Required?  Definition
credential   Credential  Optional   Credential whose private key was used to 
                                     generate the assertion. May be
                                     omitted if the whitelist has exactly 
                                     one Credential.
[...]

..which would seem to be an optimization for CTAP where it does not have to return as many bytes (in what may be a common case).

Update WebAuthn to reflect this?

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions