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

Unified Diff: chrome/browser/policy/proto/cloud/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: rebase 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/policy/proto/cloud/device_management_backend.proto
diff --git a/chrome/browser/policy/proto/cloud/device_management_backend.proto b/chrome/browser/policy/proto/cloud/device_management_backend.proto
index 765cc9f7fce12ed8901d5b0a21db72bc983aae00..0d42509b2bfd33e38a6c22192099f8df9d396981 100644
--- a/chrome/browser/policy/proto/cloud/device_management_backend.proto
+++ b/chrome/browser/policy/proto/cloud/device_management_backend.proto
@@ -103,6 +103,21 @@ message DevicePolicySettingRequest {
optional string watermark = 2;
}
+// Request to access a Google service with the given scope.
+message DeviceServiceApiAccessRequest {
+ // The list of auth scopes the device requests from DMServer.
+ repeated string auth_scope = 1;
+
+ // OAuth2 client ID to which the returned authorization code is bound.
+ optional string oauth2_client_id = 2;
+}
+
+message DeviceServiceApiAccessResponse {
+ // The OAuth2 authorization code for the requested scope(s).
+ // This can be exchanged for a refresh token.
+ optional string auth_code = 1;
+}
+
message PolicyFetchRequest {
// This is the policy type, which maps to D3 policy type internally.
// By convention, we use "/" as separator to create policy namespace.
@@ -446,6 +461,7 @@ message DeviceAutoEnrollmentResponse {
// * register
// * status
// * unregister
+// * api_authorization
//
// * devicetype: MUST BE "1" for Android or "2" for Chrome OS.
// * apptype: MUST BE Android or Chrome.
@@ -493,6 +509,9 @@ message DeviceManagementRequest {
// EMCert upload (for remote attestation)
optional DeviceCertUploadRequest cert_upload_request = 7;
+
+ // Request for OAuth2 authorization codes to access Google services.
+ optional DeviceServiceApiAccessRequest service_api_access_request = 8;
}
// Response from server to device.
@@ -535,4 +554,7 @@ message DeviceManagementResponse {
// EMCert upload response.
optional DeviceCertUploadResponse cert_upload_response = 9;
+
+ // Response to OAuth2 authorization code request.
+ optional DeviceServiceApiAccessResponse service_api_access_response = 10;
}
« no previous file with comments | « chrome/browser/policy/cloud/mock_cloud_policy_client.h ('k') | chrome/browser/policy/test/policy_testserver.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698