[webauthn] Create a WebDriver Virtual Authenticator extension to allow automated testing (#1236)

nsatragno has just created a new issue for https://github.com/w3c/webauthn:

== Create a WebDriver Virtual Authenticator extension to allow automated testing ==
Currently there is no way for web developers to write automated tests that exercise the WebAuthn API. This problem is echoed on the [WebAuthn WPT test suite](https://github.com/web-platform-tests/wpt/tree/master/webauthn) - many of the tests assume mock authenticators that are not set up by any platform and so [fail outright on all of them](https://wpt.fyi/results/webauthn?label=master&product=chrome%5Bexperimental%5D&product=edge&product=firefox%5Bexperimental%5D&product=safari%5Bexperimental%5D&aligned&q=webauthn).

I propose creating a [WebDriver extension](https://w3c.github.io/webdriver/#dfn-extension-command) defining an API that lets clients create and manipulate virtual authenticators that act transparently as any other authenticator on calls to the WebAuthn API. This would allow web developers to write tests and it would also allow rewriting the WPTs to use this API through [testdriver.js](https://web-platform-tests.org/writing-tests/testdriver-tutorial.html).

The API at minimum should have commands to create and remove virtual authenticators, and to inject, inspect and remove credentials associated to them.

This would be similar to how the [Generic Sensor API is automated](https://www.w3.org/TR/generic-sensor/#automation).

Please view or discuss this issue at https://github.com/w3c/webauthn/issues/1236 using your GitHub account

Received on Tuesday, 18 June 2019 20:23:30 UTC