Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(369)

Side by Side Diff: components/webauth/authenticator.mojom

Issue 2702653002: Patch #1 of multiple. Add webauth .mojom and initial usage of makeCredential. (Closed)
Patch Set: Restructured to only include mojom and usage for makeCredential call Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698