web_authn
AuthenticatorId
Bases: str
Source code in zendriver/cdp/web_authn.py
__repr__()
from_json(json)
classmethod
AuthenticatorProtocol
Bases: Enum
Source code in zendriver/cdp/web_authn.py
CTAP2 = 'ctap2'
class-attribute
instance-attribute
U2F = 'u2f'
class-attribute
instance-attribute
from_json(json)
classmethod
AuthenticatorTransport
Bases: Enum
Source code in zendriver/cdp/web_authn.py
BLE = 'ble'
class-attribute
instance-attribute
CABLE = 'cable'
class-attribute
instance-attribute
INTERNAL = 'internal'
class-attribute
instance-attribute
NFC = 'nfc'
class-attribute
instance-attribute
USB = 'usb'
class-attribute
instance-attribute
from_json(json)
classmethod
Credential
dataclass
Source code in zendriver/cdp/web_authn.py
188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 |
|
backup_eligibility: typing.Optional[bool] = None
class-attribute
instance-attribute
backup_state: typing.Optional[bool] = None
class-attribute
instance-attribute
credential_id: str
instance-attribute
is_resident_credential: bool
instance-attribute
large_blob: typing.Optional[str] = None
class-attribute
instance-attribute
private_key: str
instance-attribute
rp_id: typing.Optional[str] = None
class-attribute
instance-attribute
sign_count: int
instance-attribute
user_display_name: typing.Optional[str] = None
class-attribute
instance-attribute
user_handle: typing.Optional[str] = None
class-attribute
instance-attribute
user_name: typing.Optional[str] = None
class-attribute
instance-attribute
__init__(credential_id, is_resident_credential, private_key, sign_count, rp_id=None, user_handle=None, large_blob=None, backup_eligibility=None, backup_state=None, user_name=None, user_display_name=None)
from_json(json)
classmethod
Source code in zendriver/cdp/web_authn.py
to_json()
Source code in zendriver/cdp/web_authn.py
CredentialAdded
dataclass
Triggered when a credential is added to an authenticator.
Source code in zendriver/cdp/web_authn.py
authenticator_id: AuthenticatorId
instance-attribute
credential: Credential
instance-attribute
__init__(authenticator_id, credential)
CredentialAsserted
dataclass
Triggered when a credential is used in a webauthn assertion.
Source code in zendriver/cdp/web_authn.py
authenticator_id: AuthenticatorId
instance-attribute
credential: Credential
instance-attribute
__init__(authenticator_id, credential)
from_json(json)
classmethod
CredentialDeleted
dataclass
Triggered when a credential is deleted, e.g. through PublicKeyCredential.signalUnknownCredential().
Source code in zendriver/cdp/web_authn.py
authenticator_id: AuthenticatorId
instance-attribute
credential_id: str
instance-attribute
__init__(authenticator_id, credential_id)
CredentialUpdated
dataclass
Triggered when a credential is updated, e.g. through PublicKeyCredential.signalCurrentUserDetails().
Source code in zendriver/cdp/web_authn.py
authenticator_id: AuthenticatorId
instance-attribute
credential: Credential
instance-attribute
__init__(authenticator_id, credential)
from_json(json)
classmethod
Ctap2Version
Bases: Enum
Source code in zendriver/cdp/web_authn.py
CTAP2_0 = 'ctap2_0'
class-attribute
instance-attribute
CTAP2_1 = 'ctap2_1'
class-attribute
instance-attribute
from_json(json)
classmethod
VirtualAuthenticatorOptions
dataclass
Source code in zendriver/cdp/web_authn.py
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 |
|
automatic_presence_simulation: typing.Optional[bool] = None
class-attribute
instance-attribute
ctap2_version: typing.Optional[Ctap2Version] = None
class-attribute
instance-attribute
default_backup_eligibility: typing.Optional[bool] = None
class-attribute
instance-attribute
default_backup_state: typing.Optional[bool] = None
class-attribute
instance-attribute
has_cred_blob: typing.Optional[bool] = None
class-attribute
instance-attribute
has_large_blob: typing.Optional[bool] = None
class-attribute
instance-attribute
has_min_pin_length: typing.Optional[bool] = None
class-attribute
instance-attribute
has_prf: typing.Optional[bool] = None
class-attribute
instance-attribute
has_resident_key: typing.Optional[bool] = None
class-attribute
instance-attribute
has_user_verification: typing.Optional[bool] = None
class-attribute
instance-attribute
is_user_verified: typing.Optional[bool] = None
class-attribute
instance-attribute
protocol: AuthenticatorProtocol
instance-attribute
transport: AuthenticatorTransport
instance-attribute
__init__(protocol, transport, ctap2_version=None, has_resident_key=None, has_user_verification=None, has_large_blob=None, has_cred_blob=None, has_min_pin_length=None, has_prf=None, automatic_presence_simulation=None, is_user_verified=None, default_backup_eligibility=None, default_backup_state=None)
from_json(json)
classmethod
Source code in zendriver/cdp/web_authn.py
to_json()
Source code in zendriver/cdp/web_authn.py
add_credential(authenticator_id, credential)
Adds the credential to the specified authenticator.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
authenticator_id
|
AuthenticatorId
|
|
required |
credential
|
Credential
|
|
required |
Source code in zendriver/cdp/web_authn.py
add_virtual_authenticator(options)
Creates and adds a virtual authenticator.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
options
|
VirtualAuthenticatorOptions
|
|
required |
Returns:
Type | Description |
---|---|
Generator[T_JSON_DICT, T_JSON_DICT, AuthenticatorId]
|
|
Source code in zendriver/cdp/web_authn.py
clear_credentials(authenticator_id)
Clears all the credentials from the specified device.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
authenticator_id
|
AuthenticatorId
|
|
required |
Source code in zendriver/cdp/web_authn.py
disable()
enable(enable_ui=None)
Enable the WebAuthn domain and start intercepting credential storage and retrieval with a virtual authenticator.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
enable_ui
|
Optional[bool]
|
(Optional) Whether to enable the WebAuthn user interface. Enabling the UI is recommended for debugging and demo purposes, as it is closer to the real experience. Disabling the UI is recommended for automated testing. Supported at the embedder's discretion if UI is available. Defaults to false. |
None
|
Source code in zendriver/cdp/web_authn.py
get_credential(authenticator_id, credential_id)
Returns a single credential stored in the given virtual authenticator that matches the credential ID.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
authenticator_id
|
AuthenticatorId
|
|
required |
credential_id
|
str
|
|
required |
Returns:
Type | Description |
---|---|
Generator[T_JSON_DICT, T_JSON_DICT, Credential]
|
|
Source code in zendriver/cdp/web_authn.py
get_credentials(authenticator_id)
Returns all the credentials stored in the given virtual authenticator.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
authenticator_id
|
AuthenticatorId
|
|
required |
Returns:
Type | Description |
---|---|
Generator[T_JSON_DICT, T_JSON_DICT, List[Credential]]
|
|
Source code in zendriver/cdp/web_authn.py
remove_credential(authenticator_id, credential_id)
Removes a credential from the authenticator.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
authenticator_id
|
AuthenticatorId
|
|
required |
credential_id
|
str
|
|
required |
Source code in zendriver/cdp/web_authn.py
remove_virtual_authenticator(authenticator_id)
Removes the given authenticator.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
authenticator_id
|
AuthenticatorId
|
|
required |
Source code in zendriver/cdp/web_authn.py
set_automatic_presence_simulation(authenticator_id, enabled)
Sets whether tests of user presence will succeed immediately (if true) or fail to resolve (if false) for an authenticator. The default is true.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
authenticator_id
|
AuthenticatorId
|
|
required |
enabled
|
bool
|
|
required |
Source code in zendriver/cdp/web_authn.py
set_credential_properties(authenticator_id, credential_id, backup_eligibility=None, backup_state=None)
Allows setting credential properties. https://w3c.github.io/webauthn/#sctn-automation-set-credential-properties
Parameters:
Name | Type | Description | Default |
---|---|---|---|
authenticator_id
|
AuthenticatorId
|
|
required |
credential_id
|
str
|
|
required |
backup_eligibility
|
Optional[bool]
|
(Optional) |
None
|
backup_state
|
Optional[bool]
|
(Optional) |
None
|
Source code in zendriver/cdp/web_authn.py
set_response_override_bits(authenticator_id, is_bogus_signature=None, is_bad_uv=None, is_bad_up=None)
Resets parameters isBogusSignature, isBadUV, isBadUP to false if they are not present.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
authenticator_id
|
AuthenticatorId
|
|
required |
is_bogus_signature
|
Optional[bool]
|
(Optional) If isBogusSignature is set, overrides the signature in the authenticator response to be zero. Defaults to false. |
None
|
is_bad_uv
|
Optional[bool]
|
(Optional) If isBadUV is set, overrides the UV bit in the flags in the authenticator response to be zero. Defaults to false. |
None
|
is_bad_up
|
Optional[bool]
|
(Optional) If isBadUP is set, overrides the UP bit in the flags in the authenticator response to be zero. Defaults to false. |
None
|
Source code in zendriver/cdp/web_authn.py
set_user_verified(authenticator_id, is_user_verified)
Sets whether User Verification succeeds or fails for an authenticator. The default is true.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
authenticator_id
|
AuthenticatorId
|
|
required |
is_user_verified
|
bool
|
|
required |