Virtual Authenticator
Page being translated from English to Japanese. Do you speak Japanese? Help us to translate it by sending us pull requests!
Web applications can enable a public key-based authentication mechanism known as Web Authentication to authenticate users in a passwordless manner. Web Authentication defines APIs that allows a user to create a public-key credential and register it with an authenticator. An authenticator can be a hardware device or a software entity that stores user’s public-key credentials and retrieves them on request.
As the name suggests, Virtual Authenticator emulates such authenticators for testing.
Virtual Authenticator Options
A Virtual Authenticatior has a set of properties. These properties are mapped as VirtualAuthenticatorOptions in the Selenium bindings.
Add Virtual Authenticator
It creates a new virtual authenticator with the provided properties.
Remove Virtual Authenticator
Removes the previously added virtual authenticator.
Create Resident Credential
Creates a resident (stateful) credential with the given required credential parameters.
Create Non-Resident Credential
Creates a resident (stateless) credential with the given required credential parameters.
Add Credential
Registers the credential with the authenticator.
Get Credential
Returns the list of credentials owned by the authenticator.
Remove Credential
Removes a credential from the authenticator based on the passed credential id.
Remove All Credentials
Removes all the credentials from the authenticator.
Set User Verified
Sets whether the authenticator will simulate success or fail on user verification.