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

Side by Side Diff: remoting/proto/auth.proto

Issue 6030007: Chromoting protocol layers to receive and send login messages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix comments Created 9 years, 12 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 | Annotate | Revision Log
« no previous file with comments | « remoting/host/host_stub_fake.cc ('k') | remoting/protocol/client_control_sender.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Messages related to Client/Host Mutual Authentication and Local Login. 5 // Messages related to Client/Host Mutual Authentication and Local Login.
6 6
7 syntax = "proto2"; 7 syntax = "proto2";
8 8
9 option optimize_for = LITE_RUNTIME; 9 option optimize_for = LITE_RUNTIME;
10 10
11 package remoting.protocol; 11 package remoting.protocol;
12 12
13 // Represents the data used in generating the client auth token during session 13 // Represents the data used in generating the client auth token during session
14 // initiation. 14 // initiation.
15 message ClientAuthToken { 15 message ClientAuthToken {
16 optional string host_full_jid = 1; 16 optional string host_full_jid = 1;
17 optional string client_full_jid = 2; 17 optional string client_full_jid = 2;
18 18
19 // A short-lived OAuth token identifying the client to the host. 19 // A short-lived OAuth token identifying the client to the host.
20 optional string client_oauth_token = 3; 20 optional string client_oauth_token = 3;
21 } 21 }
22 22
23 // There can be more challenge types later 23 // There can be more challenge types later
24 enum CredentialType { 24 enum CredentialType {
25 PASSWORD = 0; 25 PASSWORD = 0;
26 } 26 }
27 27
28 message LocalLoginCredentials { 28 message LocalLoginCredentials {
29 optional CredentialType type = 1; 29 required CredentialType type = 1;
30 optional string username = 2; 30 optional string username = 2;
31 optional bytes credential = 3; 31 optional bytes credential = 3;
32 } 32 }
33 33
34 message LocalLoginStatus { 34 message LocalLoginStatus {
35 optional bool success = 1; 35 required bool success = 1;
36 36
37 // Only populated if success is set to false. 37 // Only populated if success is set to false.
38 optional int32 tries_remaining = 2 [default = 0]; 38 optional int32 tries_remaining = 2 [default = 0];
39 optional string error_info = 3; 39 optional string error_info = 3;
40 } 40 }
41 41
42 // Sent from the Host to the Client. This is the first message after 42 // Sent from the Host to the Client. This is the first message after
43 // channels are established. 43 // channels are established.
44 message LocalLoginProperties { 44 message LocalLoginProperties {
45 repeated CredentialType supported_credential_types = 1; 45 repeated CredentialType supported_credential_types = 1;
46 46
47 // Used to generate the bank style anti-phishing image. 47 // Used to generate the bank style anti-phishing image.
48 // This info is stored only on the host. 48 // This info is stored only on the host.
49 optional bytes antiphish_image = 2; 49 optional bytes antiphish_image = 2;
50 optional bytes antiphish_text = 3; 50 optional bytes antiphish_text = 3;
51 } 51 }
52 52
53 // Sent from Client to Host. This consists of both the login attempt, 53 // Sent from Client to Host. This consists of both the login attempt,
54 // and any session configuration information. 54 // and any session configuration information.
55 message BeginSessionRequest { 55 message BeginSessionRequest {
56 optional LocalLoginCredentials credentials = 1; 56 required LocalLoginCredentials credentials = 1;
57 } 57 }
58 58
59 // Sent from Host to Client. Replies with login success, and 59 // Sent from Host to Client. Replies with login success, and
60 // final client configuration. 60 // final client configuration.
61 message BeginSessionResponse { 61 message BeginSessionResponse {
62 optional LocalLoginStatus login_status = 1; 62 required LocalLoginStatus login_status = 1;
63 } 63 }
OLDNEW
« no previous file with comments | « remoting/host/host_stub_fake.cc ('k') | remoting/protocol/client_control_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698