Chromium Code Reviews| 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); |
| +}; |