Chromium Code Reviews| 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> clientData; | |
|
dcheng
2017/02/28 07:25:56
Nit: hacker_case instead of camelCase for variable
kpaulhamus
2017/03/01 01:56:34
Done.
| |
| 10 array<uint8> attestation; | |
| 11 }; | |
| 12 | |
| 13 struct RelyingPartyAccount { | |
| 14 string rpDisplayName; | |
|
dcheng
2017/02/28 07:25:56
Nit: 2 space indent.
kpaulhamus
2017/03/01 01:56:34
Done.
| |
| 15 string displayName; | |
| 16 string id; | |
| 17 string name; | |
| 18 string imageURL; | |
| 19 }; | |
| 20 | |
| 21 struct ScopedCredentialParameters { | |
| 22 ScopedCredentialType type; | |
| 23 //TODO add AlgorithmIdentifier algorithm; | |
|
dcheng
2017/02/28 07:25:56
Nit: TODO comment format is
// TODO(username or ht
kpaulhamus
2017/03/01 01:56:34
Done.
| |
| 24 }; | |
| 25 | |
| 26 struct ScopedCredentialOptions { | |
| 27 int32 timeoutSeconds; | |
| 28 string rpId; | |
| 29 array<ScopedCredentialDescriptor> excludeList; | |
| 30 //TODO 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 accountInformation, | |
|
dcheng
2017/02/28 07:25:56
Nit: even though this is in Blink, methods should
kpaulhamus
2017/03/01 01:56:34
Done.
| |
| 51 array<ScopedCredentialParameters> cryptoParameters, | |
| 52 array<uint8> attestationChallenge, | |
| 53 ScopedCredentialOptions? options) | |
| 54 => (array<ScopedCredentialInfo> scopedCredentials); | |
| 55 }; | |
| OLD | NEW |