| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 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 [JavaPackage="org.chromium.webauth.mojom"] |
| 6 module webauth.mojom; |
| 7 |
| 8 struct ScopedCredentialInfo { |
| 9 array<uint8> client_data; |
| 10 array<uint8> attestation; |
| 11 }; |
| 12 |
| 13 struct RelyingPartyAccount { |
| 14 string rp_display_name; |
| 15 string display_name; |
| 16 string id; |
| 17 string name; |
| 18 string image_url; |
| 19 }; |
| 20 |
| 21 struct ScopedCredentialParameters { |
| 22 ScopedCredentialType type; |
| 23 // TODO(kpaulhamus): add AlgorithmIdentifier algorithm; |
| 24 }; |
| 25 |
| 26 struct ScopedCredentialOptions { |
| 27 int32 timeout_seconds; |
| 28 string rp_id; |
| 29 array<ScopedCredentialDescriptor> exclude_list; |
| 30 // TODO(kpaulhamus): add Extensions |
| 31 }; |
| 32 |
| 33 enum ScopedCredentialType { |
| 34 SCOPEDCRED, |
| 35 }; |
| 36 |
| 37 struct ScopedCredentialDescriptor { |
| 38 ScopedCredentialType type; |
| 39 array<uint8> id; |
| 40 array<Transport> transports; |
| 41 }; |
| 42 |
| 43 enum Transport { |
| 44 USB, |
| 45 NFC, |
| 46 BLE, |
| 47 }; |
| 48 |
| 49 interface Authenticator { |
| 50 makeCredential(RelyingPartyAccount account_information, |
| 51 array<ScopedCredentialParameters> crypto_parameters, |
| 52 array<uint8> attestation_challenge, |
| 53 ScopedCredentialOptions? options) |
| 54 => (array<ScopedCredentialInfo> scoped_credentials); |
| 55 }; |
| OLD | NEW |