Skip to content

WebAuthnIDL: Default userVerification should be "preferred" per spec #157

@AlfioEmanueleFresta

Description

@AlfioEmanueleFresta

The from_json() parsing defaults userVerification to Discouraged when authenticatorSelection is not present:

impl FromInnerModel<PublicKeyCredentialCreationOptionsJSON, MakeCredentialRequestParsingError>
for MakeCredentialRequest
{
fn from_inner_model(
rpid: &RelyingPartyId,

Per the WebAuthn spec, the default should be "preferred":
https://www.w3.org/TR/webauthn-3/#dom-authenticatorselectioncriteria-userverification

userVerification, of type DOMString, defaulting to "preferred"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions