summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/modules/credentialmanager/public_key_credential_creation_options.idl
blob: 3cf8af1e135eff05c734ad8dcbb426519133ff09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright 2017 The Chromium Authors. All rights reserved.
// 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/#enumdef-attestationconveyancepreference

enum AttestationConveyancePreference {
    "none",
    "indirect",
    "direct",
    "enterprise",
};

// 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;
    AttestationConveyancePreference attestation;
    AuthenticationExtensionsClientInputs extensions;
};