chromium/third_party/blink/renderer/modules/credentialmanagement/public_key_credential_creation_options.idl

// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// https://w3c.github.io/webauthn/#dictdef-PublicKeyCredentialCreationOptions
dictionary PublicKeyCredentialCreationOptions {
    required PublicKeyCredentialRpEntity rp;
    required PublicKeyCredentialUserEntity user;
    required BufferSource challenge;
    required sequence<PublicKeyCredentialParameters> pubKeyCredParams;
    unsigned long timeout;
    sequence<PublicKeyCredentialDescriptor> excludeCredentials = [];
    AuthenticatorSelectionCriteria authenticatorSelection;
    sequence<DOMString> hints = [];
    // https://w3c.github.io/webauthn/#enumdef-attestationconveyancepreference
    DOMString attestation;
    [RuntimeEnabled=WebAuthenticationAttestationFormats] sequence<DOMString> attestationFormats = [];
    AuthenticationExtensionsClientInputs extensions;
};