blob: 14b0f2c1651f55c76c61cd81d084513b0e9199c8 [file] [log] [blame]
<!DOCTYPE html>
<title>Credential Manager: helper page for manual testing using the Testing API.</title>
<script type="module">
import {TestAuthenticatorManager} from '../resources/virtual-navigator-credentials.js';
const manager = new TestAuthenticatorManager;
async function probe() {
try {
await manager.authenticators();
console.info("The Web Authentication Testing API is available under the alias `nct`.");
} catch (e) {
console.error(e);
throw Error("It is likely that the Web Authentication API or the Testing API is not enabled. See instructions below.");
}
}
probe();
window.nct = manager;
</script>
<body>
<h2>Usage</h2>
<p>
Make sure Chromium is run with the following command line flags: --enable-features=WebAuthentication --enable-web-authentication-testing-api --enable-blink-features=MojoJS --enable-experimental-web-platform-features. See the console for debug outputs on whether the API connection was established.
</p>
<p>
Then use the Testing API under the `nct` alias to set up and configure virtual authenticator devices. The testing state is shared by the entire browser (all tabs, frames, profiles).
</p>
</body>