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

Side by Side Diff: chrome/browser/policy/cloud/proto/device_management_backend.proto

Issue 12538009: Public Sessions: fetch device robot api token during enterprise enrollment. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Addressed review comments. Created 7 years, 8 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 syntax = "proto2"; 5 syntax = "proto2";
6 6
7 option optimize_for = LITE_RUNTIME; 7 option optimize_for = LITE_RUNTIME;
8 8
9 package enterprise_management; 9 package enterprise_management;
10 10
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 // Request for a setting or with optional watermark on client side. 85 // Request for a setting or with optional watermark on client side.
86 // TODO(gfeher): remove this after Chrome OS TT is over. 86 // TODO(gfeher): remove this after Chrome OS TT is over.
87 message DevicePolicySettingRequest { 87 message DevicePolicySettingRequest {
88 // setting key 88 // setting key
89 required string key = 1; 89 required string key = 1;
90 // watermark last read from server if available. 90 // watermark last read from server if available.
91 optional string watermark = 2; 91 optional string watermark = 2;
92 } 92 }
93 93
94 // Request to access a Google service with the given scope.
95 message DeviceServiceApiAccessRequest {
96 // The list of auth scopes the device requests from DMServer.
97 repeated string auth_scope = 1;
98 }
99
100 message DeviceServiceApiAccessResponse {
101 // The OAuth2 authorization code for the requested scope(s).
102 optional string auth_code = 3;
103 }
104
94 message PolicyFetchRequest { 105 message PolicyFetchRequest {
95 // This is the policy type, which maps to D3 policy type internally. 106 // This is the policy type, which maps to D3 policy type internally.
96 // By convention, we use "/" as separator to create policy namespace. 107 // By convention, we use "/" as separator to create policy namespace.
97 // The policy type names are case insensitive. 108 // The policy type names are case insensitive.
98 // 109 //
99 // Possible values for Chrome OS are: 110 // Possible values for Chrome OS are:
100 // google/chromeos/device => ChromeDeviceSettingsProto 111 // google/chromeos/device => ChromeDeviceSettingsProto
101 // google/chromeos/user => ChromeSettingsProto 112 // google/chromeos/user => ChromeSettingsProto
102 // google/chromeos/publicaccount => ChromeSettingsProto 113 // google/chromeos/publicaccount => ChromeSettingsProto
103 // google/chrome/extension => ExternalPolicyData 114 // google/chrome/extension => ExternalPolicyData
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 // * HTTP method is POST 437 // * HTTP method is POST
427 // * Data mime type is application/x-protobuffer 438 // * Data mime type is application/x-protobuffer
428 // * HTTP parameters are (all required, all case sensitive): 439 // * HTTP parameters are (all required, all case sensitive):
429 // * request: MUST BE one of 440 // * request: MUST BE one of
430 // * enterprise_check 441 // * enterprise_check
431 // * ping 442 // * ping
432 // * policy 443 // * policy
433 // * register 444 // * register
434 // * status 445 // * status
435 // * unregister 446 // * unregister
447 // * api_authorization
436 // 448 //
437 // * devicetype: MUST BE "1" for Android or "2" for Chrome OS. 449 // * devicetype: MUST BE "1" for Android or "2" for Chrome OS.
438 // * apptype: MUST BE Android or Chrome. 450 // * apptype: MUST BE Android or Chrome.
439 // * deviceid: MUST BE no more than 64-char in [\x21-\x7E]. 451 // * deviceid: MUST BE no more than 64-char in [\x21-\x7E].
440 // * agent: MUST BE no more than 64-char long. 452 // * agent: MUST BE no more than 64-char long.
441 // * HTTP Authorization header MUST be in the following formats: 453 // * HTTP Authorization header MUST be in the following formats:
442 // * For register and ping requests 454 // * For register and ping requests
443 // Authorization: GoogleLogin auth=<auth cookie for Mobile Sync> 455 // Authorization: GoogleLogin auth=<auth cookie for Mobile Sync>
444 // 456 //
445 // * For unregister, policy and status requests: 457 // * For unregister, policy and status requests:
(...skipping 22 matching lines...) Expand all
468 480
469 // Policy request. 481 // Policy request.
470 optional DevicePolicyRequest policy_request = 3; 482 optional DevicePolicyRequest policy_request = 3;
471 483
472 // Update status. 484 // Update status.
473 optional DeviceStatusReportRequest device_status_report_request = 4; 485 optional DeviceStatusReportRequest device_status_report_request = 4;
474 optional SessionStatusReportRequest session_status_report_request = 5; 486 optional SessionStatusReportRequest session_status_report_request = 5;
475 487
476 // Auto-enrollment detection. 488 // Auto-enrollment detection.
477 optional DeviceAutoEnrollmentRequest auto_enrollment_request = 6; 489 optional DeviceAutoEnrollmentRequest auto_enrollment_request = 6;
490
491 // Request for OAuth2 authorization codes to access Google services.
492 optional DeviceServiceApiAccessRequest service_api_access_request = 7;
Mattias Nissler (ping if slow) 2013/04/02 14:16:46 note that the server version already has used this
David Roche 2013/04/04 01:39:53 Done. Will field #7 be added to the client proto?
Mattias Nissler (ping if slow) 2013/04/04 13:18:34 Field 7 will appear on the Chromium side as well,
478 } 493 }
479 494
480 // Response from server to device. 495 // Response from server to device.
481 // 496 //
482 // The server uses the following numbers as HTTP status codes 497 // The server uses the following numbers as HTTP status codes
483 // to report top-level errors. 498 // to report top-level errors.
484 // 499 //
485 // 200 OK: valid response is returned to client. 500 // 200 OK: valid response is returned to client.
486 // 400 Bad Request: invalid argument. 501 // 400 Bad Request: invalid argument.
487 // 401 Unauthorized: invalid auth cookie or DM token. 502 // 401 Unauthorized: invalid auth cookie or DM token.
(...skipping 19 matching lines...) Expand all
507 optional DevicePolicyResponse policy_response = 5; 522 optional DevicePolicyResponse policy_response = 5;
508 523
509 // Device status report response. 524 // Device status report response.
510 optional DeviceStatusReportResponse device_status_report_response = 6; 525 optional DeviceStatusReportResponse device_status_report_response = 6;
511 526
512 // Session status report response. 527 // Session status report response.
513 optional SessionStatusReportResponse session_status_report_response = 7; 528 optional SessionStatusReportResponse session_status_report_response = 7;
514 529
515 // Auto-enrollment detection response. 530 // Auto-enrollment detection response.
516 optional DeviceAutoEnrollmentResponse auto_enrollment_response = 8; 531 optional DeviceAutoEnrollmentResponse auto_enrollment_response = 8;
532
533 // Response to OAuth2 authorization code request.
534 optional DeviceServiceApiAccessResponse service_api_access_response = 9;
517 } 535 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698