1// Copyright 2017 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// https://w3c.github.io/webauthn/#enumdef-authenticatorattachment
6enum AuthenticatorAttachment {
7  "platform",
8  "cross-platform"
9};
10
11// https://w3c.github.io/webauthn/#enumdef-userverificationrequirement
12enum UserVerificationRequirement {
13    "required",
14    "preferred",
15    "discouraged"
16};
17
18// https://w3c.github.io/webauthn/#dictdef-authenticatorselectioncriteria
19dictionary AuthenticatorSelectionCriteria {
20  AuthenticatorAttachment authenticatorAttachment;
21  boolean requireResidentKey = false;
22  // A DOMString expressing a ResidentKeyRequirement.
23  [RuntimeEnabled=WebAuthenticationResidentKeyRequirement] DOMString residentKey;
24  UserVerificationRequirement userVerification;
25};
26