← Back to release summary

[webdriver] Better signature counter support for WebAuthn virtual authenticators

Category
Miscellaneous
Type
New or changed feature
Status
Proposed (Chrome Proposed)
Intent stage
None

WPT details: We'll land WPTs once the feature lands.

Summary

The Web Authentication API specifies a series of webdriver commands to support testing. These commands set up "virtual authenticators" that behave as if they were connected to the user agent and can service WebAuthn operations. https://github.com/w3c/webauthn/pull/2382 introduced two changes related to signature counters: * The Add Credential command can now take a null `signCount` parameter. This specifies that the virtual authenticator will set the signature counter to zero on every subsequent get assertion operation, matching the behaviour of synced passkey providers. * A new `signCount` parameter to the Set Credential Properties command that lets callers override the signature counter on the authenticator to test simulated duplicated authenticators.

Motivation

Better support testing code that checks signature counters.

Standards & signals

Ecosystem

Explainers: https://github.com/w3c/webauthn/issues/2363

View on chromestatus.com