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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: components/webauth/authenticator.mojom
diff --git a/components/webauth/authenticator.mojom b/components/webauth/authenticator.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..878b47beffdb831fe23a6f31bad846f1beef44a3
--- /dev/null
+++ b/components/webauth/authenticator.mojom
@@ -0,0 +1,55 @@
+// Copyright 2016 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.
+
+[JavaPackage="org.chromium.webauth.mojom"]
+module webauth.mojom;
+
+struct ScopedCredentialInfo {
+ 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.
+ array<uint8> attestation;
+};
+
+struct RelyingPartyAccount {
+ string rpDisplayName;
dcheng 2017/02/28 07:25:56 Nit: 2 space indent.
kpaulhamus 2017/03/01 01:56:34 Done.
+ string displayName;
+ string id;
+ string name;
+ string imageURL;
+};
+
+struct ScopedCredentialParameters {
+ ScopedCredentialType type;
+ //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.
+};
+
+struct ScopedCredentialOptions {
+ int32 timeoutSeconds;
+ string rpId;
+ array<ScopedCredentialDescriptor> excludeList;
+ //TODO add Extensions
+};
+
+enum ScopedCredentialType {
+ SCOPEDCRED,
+};
+
+struct ScopedCredentialDescriptor {
+ ScopedCredentialType type;
+ array<uint8> id;
+ array<Transport> transports;
+};
+
+enum Transport {
+ USB,
+ NFC,
+ BLE,
+};
+
+interface Authenticator {
+ 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.
+ array<ScopedCredentialParameters> cryptoParameters,
+ array<uint8> attestationChallenge,
+ ScopedCredentialOptions? options)
+ => (array<ScopedCredentialInfo> scopedCredentials);
+};

Powered by Google App Engine
This is Rietveld 408576698